mirror of
https://github.com/krahets/hello-algo.git
synced 2026-11-23 04:02:44 +08:00
ci: update checkout and selected language setup Actions (#1848)
Co-authored-by: krahets <krahets@163.com>
This commit is contained in:
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
@@ -4,6 +4,7 @@ on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- ".github/workflows/rust.yml"
|
||||
- "codes/rust/**/*.rs"
|
||||
- "codes/rust/Cargo.toml"
|
||||
- "en/codes/rust/**/*.rs"
|
||||
@@ -11,6 +12,7 @@ on:
|
||||
pull_request:
|
||||
branches: ["main"]
|
||||
paths:
|
||||
- ".github/workflows/rust.yml"
|
||||
- "codes/rust/**/*.rs"
|
||||
- "codes/rust/Cargo.toml"
|
||||
- "en/codes/rust/**/*.rs"
|
||||
@@ -30,7 +32,7 @@ jobs:
|
||||
with:
|
||||
toolchain: nightly
|
||||
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Build
|
||||
run: cargo build --manifest-path=${{ matrix.code-dir }}/Cargo.toml && cargo build --manifest-path=${{ matrix.code-dir }}/Cargo.toml --release
|
||||
|
||||
Reference in New Issue
Block a user