Skip to content

Commit

Permalink
Add M1 runners (#605)
Browse files Browse the repository at this point in the history
* Use startsWith in place of testing for exact matches in runner names
  • Loading branch information
jhunkeler authored Feb 22, 2024
1 parent 60bc57b commit 49349a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ jobs:
build_matrix:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-12, macos-14]
gcc: [12]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4

- name: Linux dependencies
if: matrix.os == 'ubuntu-latest'
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt update
sudo apt install -y libcfitsio-dev gfortran pkg-config
- name: MacOS dependencies
if: matrix.os == 'macos-latest'
if: startsWith(matrix.os, 'macos')
run: |
brew update
brew install gcc@${{ matrix.gcc }} cfitsio
- name: Linux build
if: matrix.os == 'ubuntu-latest'
if: startsWith(matrix.os, 'ubuntu')
run: |
mkdir -p build
cd build
Expand All @@ -44,7 +44,7 @@ jobs:
make
- name: MacOS build
if: matrix.os == 'macos-latest'
if: startsWith(matrix.os, 'macos')
env:
CC: gcc-${{ matrix.gcc }}
CXX: g++-${{ matrix.gcc }}
Expand Down

0 comments on commit 49349a9

Please sign in to comment.