Skip to content

Commit

Permalink
Merge pull request #308 from KernelEquinox/patch-1
Browse files Browse the repository at this point in the history
Add macOS build/release action
  • Loading branch information
patriciogonzalezvivo authored Oct 28, 2022
2 parents b1a9a41 + 8abc4e9 commit 43ff60d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ jobs:
cpack -C CPackConfig.cmake -V
dir
build_artifact: glslViewer-*-win64-AMD64.zip
- os: macos-latest
build_command: |
mkdir build
cd build
cmake -DCPACK_GENERATOR=ZIP ..
cmake --build .
cpack -C CPackConfig.cmake -V
ls -l
build_artifact: glslViewer-*-x86_64.zip
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand All @@ -43,6 +52,11 @@ jobs:
libavdevice-dev libavformat-dev libavutil-dev libswscale-dev \
libv4l-dev libjpeg-dev libpng-dev libtiff-dev
- name: Install dependencies (macOS)
if: matrix.os == 'macos-latest'
run: |
conda install ffmpeg
- name: Set up MSVC environment (Windows)
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1
Expand Down Expand Up @@ -92,6 +106,7 @@ jobs:
files: |
glslViewer-ubuntu-latest-build/*
glslViewer-windows-latest-build/*
glslViewer-macos-latest-build/*
generate_release_notes: true
body: |
To use the Windows build, please download [FFmpeg 4.4][ffmpeg] and copy `bin\*.dll` alongside `glslViewer.exe`.
Expand Down

0 comments on commit 43ff60d

Please sign in to comment.