Skip to content

Commit 2890234

Browse files
committed
fix: update dependencies
1 parent 7547902 commit 2890234

File tree

5 files changed

+482
-1035
lines changed

5 files changed

+482
-1035
lines changed

.github/workflows/build.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff 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:
@@ -51,4 +49,16 @@ jobs:
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

.github/workflows/release.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
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
@@ -46,7 +51,7 @@ jobs:
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:
@@ -73,7 +78,7 @@ jobs:
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
@@ -82,9 +87,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)