Skip to content

Commit 1758ad2

Browse files
committed
feat: Update Node.js version in frontend workflow
1 parent 9719168 commit 1758ad2

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

.github/workflows/backend.yml

+18-9
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,27 @@ jobs:
4949
apt update \
5050
&& apt install -y curl gcc musl-dev openssl libssl-dev pkg-config cmake
5151
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
5561

56-
- uses: taiki-e/cache-cargo-install-action@v2
62+
- name: Cache Rust dependencies
63+
id: cache-rust
64+
uses: actions/cache@v3
5765
with:
58-
66+
path: ${{ github.workspace }}/cargo
67+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
68+
restore-keys: ${{ runner.os }}-cargo-
5969

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
6473
6574
- name: Docker Login
6675
uses: docker/login-action@v3

0 commit comments

Comments
 (0)