Skip to content

Commit

Permalink
separate builds for macos-13 Intel and macos-14 ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
jcschaff committed May 24, 2024
1 parent 0b4fc33 commit c1a9507
Showing 1 changed file with 34 additions and 9 deletions.
43 changes: 34 additions & 9 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, windows-latest, ubuntu-latest, macos-14-arm64]
platform: [macos-13, windows-latest, ubuntu-latest, macos-14]


runs-on: ${{ matrix.platform }}
Expand All @@ -53,8 +53,26 @@ jobs:
- name: checkout vcell-solvers repo
uses: actions/checkout@v4

- name: Install MacOS dependencies
if: matrix.platform == 'macos-latest'
- name: Install Intel MacOS dependencies
if: matrix.platform == 'macos-13'
shell: bash
run: |
brew install boost
brew install hdf5
brew install ninja
brew install llvm
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> /Users/runner/.bash_profile
source /Users/runner/.bash_profile
gcc --version
gfortran --version
cmake --version
brew info boost
brew info hdf5
- name: Install ARM MacOS dependencies
if: matrix.platform == 'macos-14'
shell: bash
run: |
brew install boost
Expand All @@ -72,7 +90,7 @@ jobs:
brew info hdf5
- name: Build Macos
if: matrix.platform == 'macos-latest'
if: matrix.platform == 'macos-13' || matrix.platform == 'macos-14'
run: |
platform=macos
echo "working dir is $PWD"
Expand Down Expand Up @@ -103,7 +121,7 @@ jobs:
ninja
- name: Test Macos
if: matrix.platform == 'macos-latest'
if: matrix.platform == 'macos-13' || matrix.platform == 'macos-14'
run: |
platform=macos
echo "working dir is $PWD"
Expand Down Expand Up @@ -285,7 +303,7 @@ jobs:
- name: fix Macos shared object paths
if: matrix.platform == 'macos-latest'
if: matrix.platform == 'macos-13' || matrix.platform == 'macos-14'
shell: bash
run: |
mkdir build/upload
Expand Down Expand Up @@ -328,12 +346,19 @@ jobs:
tar czvf ../upload/linux64.tgz --dereference .
cd ../..
- name: Upload Macos binaries
if: matrix.platform == 'macos-latest'
- name: Upload Intel Macos binaries
if: matrix.platform == 'macos-13'
uses: actions/upload-artifact@v4
with:
name: mac64.tgz
path: build/upload/macos_x86_64.tgz

- name: Upload ARM Macos binaries
if: matrix.platform == 'macos-14'
uses: actions/upload-artifact@v4
with:
name: mac64.tgz
path: build/upload/mac64.tgz
path: build/upload/macos_arm64.tgz

- name: Upload Windows binaries
if: matrix.platform == 'windows-latest'
Expand Down

0 comments on commit c1a9507

Please sign in to comment.