Skip to content

Commit 33551fe

Browse files
authored
Merge pull request #24 from G-Core/fix/depricate_action_rs
replace action-rs gh actions with other
2 parents a508cd0 + a7932ff commit 33551fe

File tree

1 file changed

+13
-30
lines changed

1 file changed

+13
-30
lines changed

.github/workflows/ci.yaml

Lines changed: 13 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: [push]
44

55
env:
66
CARGO_TERM_COLOR: always
7+
RUSTFLAGS: "-Dwarnings"
78

89
jobs:
910
build:
@@ -16,41 +17,24 @@ jobs:
1617
submodules: recursive
1718

1819
- name: Setup Rust
19-
uses: actions-rs/toolchain@v1
20+
uses: dtolnay/rust-toolchain@stable
2021
with:
21-
profile: minimal
22-
toolchain: stable
2322
target: wasm32-wasi
2423
components: rustfmt, clippy
2524

26-
- name: Build
27-
uses: actions-rs/cargo@v1
28-
with:
29-
command: build
30-
args: --release --all-features
31-
32-
- name: Documentation
33-
uses: actions-rs/cargo@v1
25+
- name: Run cargo-audit binary crate
26+
uses: rustsec/[email protected]
3427
with:
35-
command: doc
28+
token: ${{ secrets.GITHUB_TOKEN }}
3629

37-
- name: Install cargo-audit binary crate
38-
uses: actions-rs/[email protected]
39-
with:
40-
crate: cargo-audit
41-
version: latest
42-
use-tool-cache: true
30+
- name: Build
31+
run: cargo build --release --all-features
4332

44-
- name: Annotate commit with clippy warnings
45-
uses: actions-rs/clippy-check@v1
46-
with:
47-
token: ${{ secrets.GITHUB_TOKEN }}
48-
args: --all-features
33+
- name: Documentation
34+
run: cargo doc
4935

50-
- name: Security audit
51-
uses: actions-rs/audit-check@v1
52-
with:
53-
token: ${{ secrets.GITHUB_TOKEN }}
36+
- name: Run Clippy
37+
run: cargo clippy --all-targets --all-features
5438

5539
release:
5640
runs-on: ubuntu-latest
@@ -63,11 +47,10 @@ jobs:
6347
submodules: recursive
6448

6549
- name: Setup Rust
66-
uses: actions-rs/toolchain@v1
50+
uses: dtolnay/rust-toolchain@stable
6751
with:
68-
profile: minimal
69-
toolchain: stable
7052
target: wasm32-wasi
53+
components: rustfmt, clippy
7154

7255
- name: Run Release PR
7356
uses: MarcoIeni/[email protected]

0 commit comments

Comments
 (0)