File tree Expand file tree Collapse file tree 3 files changed +24
-9
lines changed
Expand file tree Collapse file tree 3 files changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,23 @@ permissions:
1010
1111jobs :
1212 build :
13- runs-on : ubuntu-latest
1413 strategy :
1514 matrix :
16- target :
17- - x86_64-unknown-linux-gnu
18- - aarch64-unknown-linux-gnu
19- - x86_64-apple-darwin
20- - aarch64-apple-darwin
15+ include :
16+ - target : x86_64-unknown-linux-gnu
17+ os : ubuntu-latest
18+ use_cross : true
19+ - target : aarch64-unknown-linux-gnu
20+ os : ubuntu-latest
21+ use_cross : true
22+ - target : x86_64-apple-darwin
23+ os : macos-latest
24+ use_cross : false
25+ - target : aarch64-apple-darwin
26+ os : macos-latest
27+ use_cross : false
28+
29+ runs-on : ${{ matrix.os }}
2130
2231 steps :
2332 - uses : actions/checkout@v4
@@ -27,12 +36,18 @@ jobs:
2736 targets : ${{ matrix.target }}
2837
2938 - uses : taiki-e/install-action@v2
39+ if : matrix.use_cross
3040 with :
3141 tool : cross
3242
33- - name : Build
43+ - name : Build (cross)
44+ if : matrix.use_cross
3445 run : cross build --release --target ${{ matrix.target }}
3546
47+ - name : Build (native)
48+ if : ${{ !matrix.use_cross }}
49+ run : cargo build --release --target ${{ matrix.target }}
50+
3651 - name : Package
3752 shell : bash
3853 run : |
Original file line number Diff line number Diff line change 11[package ]
22name = " canine-cli"
3- version = " 0.1.2 "
3+ version = " 0.1.4 "
44edition = " 2024"
55
66[dependencies ]
You can’t perform that action at this time.
0 commit comments