Commit 1758ad2 1 parent 9719168 commit 1758ad2 Copy full SHA for 1758ad2
File tree 1 file changed +18
-9
lines changed
1 file changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,27 @@ jobs:
49
49
apt update \
50
50
&& apt install -y curl gcc musl-dev openssl libssl-dev pkg-config cmake
51
51
52
- - uses : actions-rs/toolchain@v1
53
- with :
54
- toolchain : nightly
52
+ - name : Install Rust
53
+ id : rust
54
+ run : |
55
+ curl -o /usr/local/bin/rustup-init --proto '=https' --tlsv1.2 -sSf https://rsproxy.cn/rustup-init.sh \
56
+ && chmod +x /usr/local/bin/rustup-init \
57
+ && /usr/local/bin/rustup-init --default-toolchain nightly -y \
58
+ && source $HOME/.cargo/env
59
+ env :
60
+ CARGO_HOME : ${{ github.workspace }}/cargo
55
61
56
- - uses : taiki-e/cache-cargo-install-action@v2
62
+ - name : Cache Rust dependencies
63
+ id : cache-rust
64
+ uses : actions/cache@v3
57
65
with :
58
-
66
+ path : ${{ github.workspace }}/cargo
67
+ key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
68
+ restore-keys : ${{ runner.os }}-cargo-
59
69
60
- - uses : actions-rs/cargo@v1
61
- with :
62
- command : build
63
- args : --release
70
+ - name : Build Rust project
71
+ run : |
72
+ cargo build --release
64
73
65
74
- name : Docker Login
66
75
uses : docker/login-action@v3
You can’t perform that action at this time.
0 commit comments