File tree Expand file tree Collapse file tree 5 files changed +482
-1035
lines changed
Expand file tree Collapse file tree 5 files changed +482
-1035
lines changed Original file line number Diff line number Diff line change @@ -15,26 +15,24 @@ jobs:
1515
1616 steps :
1717 - uses : actions/checkout@v2
18-
1918 - uses : actions-rs/toolchain@v1
2019 with :
2120 toolchain : stable
2221 target : ${{ matrix.target }}
2322 override : true
24-
23+ - uses : Swatinem/rust-cache@v2
2524 - uses : actions-rs/cargo@v1
2625 with :
27- use-cross : false
26+ use-cross : true
2827 command : test
29-
3028 - uses : actions-rs/cargo@v1
3129 with :
32- use-cross : false
30+ use-cross : true
3331 command : build
3432 args : --release
3533
3634 cross_compile :
37- name : Cross compile
35+ name : Cross Compile
3836 runs-on : ubuntu-latest
3937 strategy :
4038 matrix :
5149 with :
5250 use-cross : true
5351 command : build
54- args : --release --target=${{ matrix.target }}
52+ args : --release --target=${{ matrix.target }}
53+
54+ static-compile-publish :
55+ name : Static Build
56+ runs-on : ubuntu-latest
57+ env :
58+ CARGO_TERM_COLOR : always
59+ BUILD_TARGET : x86_64-unknown-linux-musl
60+ BINARY_NAME : cryptography-learning-backend-x86_64-linux-unknown-musl
61+ steps :
62+ - uses : actions/checkout@v2
63+ - name : Static build
64+ uses : zhxiaogg/cargo-static-build@master
Original file line number Diff line number Diff line change 3232 toolchain : stable
3333 target : ${{ matrix.target }}
3434 override : true
35+ with :
36+ toolchain : stable
37+ target : ${{ matrix.target }}
38+ override : true
39+ - uses : Swatinem/rust-cache@v2
3540 - uses : actions-rs/cargo@v1
3641 with :
3742 use-cross : true
4651 tag : ${{ github.ref }}
4752
4853 cross-compile-publish :
49- name : Cross compile publish
54+ name : Cross Compile Publish
5055 runs-on : ubuntu-latest
5156 strategy :
5257 matrix :
7378 tag : ${{ github.ref }}
7479
7580 static-compile-publish :
76- name : Static build publish on Linux
81+ name : Static Build Publish on Linux
7782 runs-on : ubuntu-latest
7883 env :
7984 CARGO_TERM_COLOR : always
8287 steps :
8388 - uses : actions/checkout@v2
8489 - name : Static build
85- uses : gmiam/rust-musl-action@master
86- with :
87- args : cargo build --target $BUILD_TARGET --release
90+ uses : zhxiaogg/cargo-static-build@master
8891 - uses : svenstaro/upload-release-action@v1-release
8992 with :
9093 repo_token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments