Skip to content

Commit

Permalink
add m1 macos ci (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Feb 2, 2024
1 parent 9ec1711 commit d402755
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/macos-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ on:
type: string
jobs:
build:
runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-13, macos-14]
env:
boost_version: 1.84.0
BOOST_ROOT: ${{ github.workspace }}/deps/boost-1.84.0
Expand Down Expand Up @@ -44,7 +48,7 @@ jobs:
with:
path: |
${{ env.BOOST_ROOT }}.tar.xz
key: ${{ runner.os }}-boost-${{ env.boost_version }}
key: ${{ matrix.os }}-boost-${{ env.boost_version }}

- name: Extract Boost source tarball
if: steps.cache-boost.outputs.cache-hit == 'true'
Expand Down Expand Up @@ -72,7 +76,7 @@ jobs:
include
lib
share
key: ${{ runner.os }}${{ inputs.build_variant }}-deps-${{ hashFiles('submodule-status') }}
key: ${{ matrix.os }}${{ inputs.build_variant }}-deps-${{ hashFiles('submodule-status') }}

- name: Build dependencies
if: steps.cache-deps.outputs.cache-hit != 'true'
Expand Down

0 comments on commit d402755

Please sign in to comment.