Skip to content

Commit a1de60b

Browse files
authored
Merge pull request #203 from radiosilence/ci-darwin-arm64
ci: add darwin arm64 (aarch64-apple-darwin) build target
2 parents 3a1148e + 5d738cb commit a1de60b

File tree

1 file changed

+27
-13
lines changed

1 file changed

+27
-13
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,34 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
os: [windows-latest, ubuntu-latest, macOS-latest]
13+
include:
14+
- os: windows-latest
15+
target: x86_64-pc-windows-msvc
16+
artifact_name: git-absorb.exe
17+
- os: ubuntu-latest
18+
target: x86_64-unknown-linux-gnu
19+
artifact_name: git-absorb
20+
- os: macos-15-intel
21+
target: x86_64-apple-darwin
22+
artifact_name: git-absorb
23+
- os: macos-latest
24+
target: aarch64-apple-darwin
25+
artifact_name: git-absorb
1426
steps:
15-
- uses: actions/checkout@v4
16-
- name: Build
17-
run: cargo build --release --verbose
18-
- name: Run tests
19-
run: cargo test --verbose
20-
- name: Upload artifact
21-
uses: actions/upload-artifact@v4
22-
with:
23-
name: git-absorb-${{ matrix.os }}
24-
path: |
25-
target/release/git-absorb
26-
target/release/git-absorb.exe
27+
- uses: actions/checkout@v4
28+
- name: Install Rust toolchain
29+
uses: dtolnay/rust-toolchain@stable
30+
with:
31+
targets: ${{ matrix.target }}
32+
- name: Build
33+
run: cargo build --release --verbose --target ${{ matrix.target }}
34+
- name: Run tests
35+
run: cargo test --verbose --target ${{ matrix.target }}
36+
- name: Upload artifact
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: git-absorb-${{ matrix.target }}
40+
path: target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
2741

2842
check-format:
2943
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)