Skip to content

Commit 13d5e9c

Browse files
authored
1 parent 13c13ae commit 13d5e9c

File tree

4 files changed

+31
-44
lines changed

4 files changed

+31
-44
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,21 @@ jobs:
1010
name: Build
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
name: Checkout 🛎️
15-
- uses: actions/cache@v2
15+
- uses: actions/cache@v4
1616
with:
1717
path: |
1818
~/.cargo/registry
1919
~/.cargo/git
2020
target
2121
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
22-
- uses: actions-rs/toolchain@v1
22+
- uses: dtolnay/rust-toolchain@stable
2323
name: Setup Cargo Toolchain 🛎️
2424
with:
2525
components: rustfmt, clippy
26-
toolchain: stable
27-
default: true
28-
- uses: actions-rs/cargo@v1
26+
- run: cargo build --workspace --release
2927
name: Compile all targets 🚀
30-
with:
31-
command: build
32-
args: --workspace --release
3328
- uses: actions/upload-artifact@v2
3429
with:
3530
name: mirror-intel-release

.github/workflows/release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,21 @@ jobs:
1212
name: Release
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
name: Checkout 🛎️
17-
- uses: actions/cache@v2
17+
- uses: actions/cache@v4
1818
with:
1919
path: |
2020
~/.cargo/registry
2121
~/.cargo/git
2222
target
2323
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
24-
- uses: actions-rs/toolchain@v1
24+
- uses: dtolnay/rust-toolchain@stable
2525
name: Setup Cargo Toolchain 🛎️
2626
with:
2727
components: rustfmt, clippy
28-
toolchain: stable
29-
default: true
30-
- uses: actions-rs/cargo@v1
28+
- run: cargo build --workspace --release
3129
name: Compile all targets 🚀
32-
with:
33-
command: build
34-
args: --workspace --release
3530
- name: create tar
3631
run: tar -cvzf mirror-intel.tar.gz -C target/release mirror-intel
3732
- uses: actions/create-release@latest

.github/workflows/test.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,22 @@ jobs:
1313
name: Lint and Test
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
name: Checkout 🛎️
18-
- uses: actions/cache@v2
18+
- uses: actions/cache@v4
1919
with:
2020
path: |
2121
~/.cargo/registry
2222
~/.cargo/git
2323
target
2424
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
25-
- uses: actions-rs/toolchain@v1
25+
- uses: dtolnay/rust-toolchain@stable
2626
name: Setup Cargo Toolchain 🛎️
2727
with:
2828
components: rustfmt, clippy
29-
toolchain: stable
30-
default: true
31-
- uses: actions-rs/cargo@v1
29+
- run: cargo fmt -- --check
3230
name: Check Code Format 🔧
33-
with:
34-
command: fmt
35-
args: -- --check
36-
- uses: actions-rs/cargo@v1
31+
- run: cargo check --workspace
3732
name: Compile all targets 🚀
38-
with:
39-
command: check
40-
args: --workspace
41-
- uses: actions-rs/cargo@v1
33+
- run: cargo test --workspace
4234
name: Running Tests 🚀
43-
with:
44-
command: test
45-
args: --workspace

Cargo.lock

Lines changed: 17 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)