Commit a5a5f2f 1 parent 1758ad2 commit a5a5f2f Copy full SHA for a5a5f2f
File tree 1 file changed +8
-18
lines changed
1 file changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -49,27 +49,17 @@ jobs:
49
49
apt update \
50
50
&& apt install -y curl gcc musl-dev openssl libssl-dev pkg-config cmake
51
51
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
61
-
62
- - name : Cache Rust dependencies
63
- id : cache-rust
64
- uses : actions/cache@v3
52
+ - uses : actions-rs/toolchain@v1
65
53
with :
66
- path : ${{ github.workspace }}/cargo
67
- key : ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
68
- restore-keys : ${{ runner.os }}-cargo-
54
+ toolchain : nightly
69
55
70
- - name : Build Rust project
56
+ - uses : actions-rs/cargo@v1
57
+ with :
58
+ command : build
59
+ args : --release
60
+ - name : Build and Push GitDataOs
71
61
run : |
72
- cargo build --release
62
+ ls -lh
73
63
74
64
- name : Docker Login
75
65
uses : docker/login-action@v3
You can’t perform that action at this time.
0 commit comments