Skip to content

Commit

Permalink
Update build-macos-arm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
laamaa committed Jun 22, 2024
1 parent 1edf542 commit 7d92ef9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build-macos-arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ jobs:
runs-on: macos-latest

steps:
- name: 'Environment info'
run: |
uname -m
- name: 'Install dependencies'
run: arch -arm64 brew install cmake pkg-config sdl2 libserialport
run: brew install cmake pkg-config sdl2 libserialport

- name: 'Checkout'
uses: actions/checkout@v4
Expand All @@ -22,14 +26,14 @@ jobs:

- name: 'Build m8c'
run: |
mkdir -p build_arm64 && cd build_arm64 && export CMAKE_APPLE_SILICON_PROCESSOR="arm64" && cmake .. && cpack -V
mkdir -p build_arm64 && cd build_arm64 && cmake .. && cpack -V
- name: 'Build package'
run: |
mv build_arm64/m8c-0.1.1-Darwin.dmg m8c-${{ env.NOW }}-applesilicon.dmg
mv build_arm64/m8c-0.1.1-Darwin.dmg m8c-${{ env.NOW }}-macos-applesilicon.dmg
- name: 'Upload artifact'
uses: actions/upload-artifact@v4
with:
name: m8c-${{ env.NOW }}-macos
name: m8c-${{ env.NOW }}-macos-applesilicon
path: |
m8c-${{ env.NOW }}-applesilicon.dmg
m8c-${{ env.NOW }}-macos-applesilicon.dmg

0 comments on commit 7d92ef9

Please sign in to comment.