Skip to content

Commit

Permalink
Drop actions-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
yanorei32 committed Jun 25, 2024
1 parent b4bfe5e commit dd392be
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 41 deletions.
40 changes: 15 additions & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ jobs:
sudo apt-get update -y
sudo apt-get install -y gcc-mingw-w64-x86-64
- uses: actions-rs/toolchain@v1.0.7
with:
toolchain: stable
components: clippy
override: true
target: x86_64-unknown-linux-gnu
- name: Get Rust toolchain
id: toolchain
run: |
awk -F'[ ="]+' '$1 == "channel" { print "toolchain=" $2 }' rust-toolchain >> "$GITHUB_OUTPUT"
- uses: actions-rs/toolchain@v1.0.7
- name: install clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: x86_64-pc-windows-gnu
components: clippy
toolchain: ${{ steps.toolchain.outputs.toolchain }}
targets: x86_64-pc-windows-gnu

- name: cache dependencies
uses: Swatinem/rust-cache@v2.7.3
Expand All @@ -39,27 +39,17 @@ jobs:
echo RUSTFLAGS='--cfg reqwest_unstable' >> "$GITHUB_ENV"
- name: clippy check
uses: actions-rs/clippy-check@v1.0.7
uses: sksat/action-clippy@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features
reporter: github-check

- name: install cargo-license
uses: actions-rs/cargo@v1.0.3
with:
command: install
args: cargo-license

- name: compile for unit test
uses: actions-rs/cargo@v1.0.3
with:
command: test
args: --no-run --locked
run: cargo install cargo-license

- name: unit test
uses: actions-rs/cargo@v1.0.3
with:
command: test
run: |
cargo test --no-run --locked
cargo test
- run: |
cargo build --release --target x86_64-unknown-linux-gnu
Expand Down
28 changes: 13 additions & 15 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ jobs:
steps:
- uses: actions/checkout@v4.1.7

- uses: actions-rs/toolchain@v1.0.7
- name: Get Rust toolchain
id: toolchain
run: |
awk -F'[ ="]+' '$1 == "channel" { print "toolchain=" $2 }' rust-toolchain >> "$GITHUB_OUTPUT"
- name: install clippy
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
toolchain: ${{ steps.toolchain.outputs.toolchain }}
components: clippy
override: true

- name: cache dependencies
uses: Swatinem/rust-cache@v2.7.3
Expand All @@ -32,18 +37,11 @@ jobs:
echo RUSTFLAGS='--cfg reqwest_unstable' >> "$GITHUB_ENV"
- name: clippy check
uses: actions-rs/clippy-check@v1.0.7
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

- name: compile for unit test
uses: actions-rs/cargo@v1.0.3
uses: sksat/action-clippy@v1.0.0
with:
command: test
args: --no-run --locked
reporter: github-pr-review

- name: unit test
uses: actions-rs/cargo@v1.0.3
with:
command: test
run: |
cargo test --no-run --locked
cargo test
4 changes: 3 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:recommended",
"https://github.com/arkedge/renovate-config/raw/main/rust-toolchain.json5"
]
}
2 changes: 2 additions & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[toolchain]
channel = "1.79.0"

0 comments on commit dd392be

Please sign in to comment.