Skip to content

Commit

Permalink
CI: add worker for M1 macOS runner
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmorgner committed Feb 4, 2024
1 parent 3331171 commit 74b912b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/setup-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -ex -o xtrace

brew install automake gengetopt help2man pkgconfig
brew install automake gengetopt help2man pkgconfig libtool

# openSCToken
export PATH="/usr/local/opt/ccache/libexec:$PATH"
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ permissions:

jobs:
build:
runs-on: macos-12
strategy:
matrix:
os: [macos-12, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- run: .github/setup-macos.sh
Expand All @@ -33,7 +36,7 @@ jobs:
- name: Cache build artifacts
uses: actions/upload-artifact@v3
with:
name: opensc-build-macos
name: opensc-build-${{ matrix.os }}
path:
OpenSC*.dmg
- run: .github/cleanup-macos.sh
Expand All @@ -49,7 +52,7 @@ jobs:
- name: Pull build artifacts
uses: actions/download-artifact@v3
with:
name: opensc-build-macos
name: opensc-build-macos-12
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Github Actions";
- run: .github/push_artifacts.sh "Github Actions ${GITHUB_REF}"
Expand Down

0 comments on commit 74b912b

Please sign in to comment.