Skip to content

Commit

Permalink
Fix: Build arm64 binaries for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
spnda committed Jul 30, 2022
1 parent 7f784c8 commit beaeea8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/continuous_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
matrix:
os: [{genus: macos-10.15, family: osx}]
compiler: [{cc: clang, cxx: clang++}]
arch: [x86_64, arm64]
cmake_build_type: [Debug, Release]
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -133,7 +134,7 @@ jobs:
CXX: ${{matrix.compiler.cxx}}
run: |
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_INSTALL_PREFIX=`pwd`/install ..
cmake -DCMAKE_BUILD_TYPE=${{matrix.cmake_build_type}} -DCMAKE_INSTALL_PREFIX=`pwd`/install -DCMAKE_OSX_ARCHITECTURES=${{matrix.arch}} ..
make -j4 install
- name: Test
run: |
Expand All @@ -142,7 +143,7 @@ jobs:
cd ../Test && ./runtests
- name: Zip
env:
ARCHIVE: glslang-master-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip
ARCHIVE: glslang-master-${{matrix.os.family}}-${{matrix.arch}}-${{matrix.cmake_build_type}}.zip
run: |
cd build/install
zip ${ARCHIVE} \
Expand All @@ -162,7 +163,7 @@ jobs:
lib/libSPIRV-Tools-opt.a
- name: Deploy
env:
ARCHIVE: glslang-master-${{matrix.os.family}}-${{matrix.cmake_build_type}}.zip
ARCHIVE: glslang-master-${{matrix.os.family}}-${{matrix.arch}}-${{matrix.cmake_build_type}}.zip
uses: actions/github-script@v5
with:
script: |
Expand Down

0 comments on commit beaeea8

Please sign in to comment.