Skip to content

Commit 4130402

Browse files
testing build
1 parent 3d20187 commit 4130402

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/build-zauth.yaml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
branches:
44
- lwille/zauth-arm64
55

6-
76
name: Build zAuth Rust binary for ARM64
87
jobs:
98
build:
@@ -15,19 +14,28 @@ jobs:
1514
osx-version: "15.5"
1615

1716
- name: Install Rustup targets
18-
run: rustup target add x86_64-apple-darwin aarch64-apple-darwin
17+
run: |
18+
rustup target add aarch64-apple-darwin x86_64-apple-darwin
1919
2020
- name: Checkout repository
2121
uses: actions/checkout@v3
2222

23-
- name: Build zAuth for ARM64
23+
- name: Configure environment for macOS ARM cross-compiling
24+
run: |
25+
echo "CC=aarch64-apple-darwin15.5-clang" >> $GITHUB_ENV
26+
echo "CXX=aarch64-apple-darwin15.5-clang++" >> $GITHUB_ENV
27+
echo "AR=aarch64-apple-darwin15.5-ar" >> $GITHUB_ENV
28+
echo "CFLAGS=-mmacosx-version-min=11.0 -arch arm64" >> $GITHUB_ENV
29+
echo "RUSTFLAGS=-C linker=aarch64-apple-darwin15.5-clang" >> $GITHUB_ENV
30+
31+
- name: Build zAuth for macOS ARM
2432
run: |
25-
make libzauth
33+
make libzauth
2634
env:
27-
CARGO_BUILD_TARGET: aarch64-apple-darwin
35+
CARGO_BUILD_TARGET: aarch64-apple-darwin
2836

2937
- name: Upload zAuth binary as artifact
3038
uses: actions/upload-artifact@v4
3139
with:
32-
name: zauth-linux-arm64
40+
name: zauth-macos-arm64
3341
path: dist/zauth

0 commit comments

Comments
 (0)