@@ -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