Skip to content

Commit fa005ea

Browse files
committed
Update macOS CI
1 parent 4308c9c commit fa005ea

File tree

3 files changed

+21
-4
lines changed

3 files changed

+21
-4
lines changed

.github/workflows/mac.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: macOS
1+
name: macOS (x86_64)
22

33
on: [push, pull_request]
44

55
jobs:
66
release:
77
runs-on: macos-13
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- name: Build
1111
run: ./src/scripts/build_mac_ci.sh
1212
- name: Artifact

.github/workflows/macos.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: macOS (arm64)
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
release:
7+
runs-on: macos-15
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Build
11+
run: ./src/scripts/build_mac_ci.sh
12+
- name: Artifact
13+
uses: actions/upload-artifact@v4
14+
with:
15+
name: friction-ci-macOS-arm64
16+
path: build-release/*.dmg

src/scripts/build_mac_ci.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@
2121
set -e -x
2222

2323
CWD=`pwd`
24-
24+
CPU=`uname -m`
2525
SDK=1.0.0
26+
2627
URL=https://github.com/friction2d/friction-sdk/releases/download/v${SDK}
27-
SDK_TAR=friction-sdk-${SDK}-macOS-x86_64.tar.xz
28+
SDK_TAR=friction-sdk-${SDK}-macOS-${CPU}.tar.xz
2829

2930
if [ ! -d "${CWD}/sdk" ]; then
3031
curl -OL ${URL}/${SDK_TAR}

0 commit comments

Comments
 (0)