File tree Expand file tree Collapse file tree 1 file changed +18
-23
lines changed
Expand file tree Collapse file tree 1 file changed +18
-23
lines changed Original file line number Diff line number Diff line change 1010 CARGO_TERM_COLOR : always
1111
1212jobs :
13- ubuntu-amd64- build :
13+ ubuntu-build :
1414 runs-on : ubuntu-latest
1515
16- steps :
17- - uses : actions/checkout@v4
18- - name : Cache dependencies
19- uses : Swatinem/rust-cache@v2.7.3
20- - name : Build
21- run : cargo build --release --verbose
22- - name : Artefacts
23- uses : actions/upload-artifact@v4
24- with :
25- name : cloudflareddns-${{ runner.os }}-${{ runner.arch }}
26- path : |
27- target/**/cloudflareddns
28- LICENSE
29- README.md
30-
31- ubuntu-arm64-build :
32- runs-on : ubuntu-latest
16+ strategy :
17+ matrix :
18+ target : [x86_64-unknown-linux-gnu, aarch64-unknown-linux-musl, x86_64-pc-windows-gnu]
3319
3420 steps :
3521 - uses : actions/checkout@v4
22+
3623 - name : Cache dependencies
3724 uses : Swatinem/rust-cache@v2.7.3
38- - uses : actions-rs/cargo@v1
25+
26+ - name : Build for ${{ matrix.target }}
27+ if : matrix.target != 'x86_64-unknown-linux-gnu'
28+ uses : actions-rs/cargo@v1
3929 with :
4030 use-cross : true
4131 command : build
42- args : --all --release --target=aarch64-unknown-linux-musl
32+ args : --all --release --target=${{ matrix.target }}
33+
34+ - name : Build for ${{ matrix.target }}
35+ if : matrix.target == 'x86_64-unknown-linux-gnu'
36+ run : cargo build --release --verbose
37+
4338 - name : Artefacts
4439 uses : actions/upload-artifact@v4
4540 with :
46- name : cloudflareddns-${{ runner.os }}-arm64
41+ name : cloudflareddns-${{ matrix.target }}
4742 path : |
48- target/**/cloudflareddns
43+ target/**/cloudflareddns*
4944 LICENSE
5045 README.md
5146
52- macos-build :
47+ macos-arm64- build :
5348 runs-on : macos-latest
5449
5550 steps :
You can’t perform that action at this time.
0 commit comments