Skip to content

Commit

Permalink
ci: Remove actions-rs (#4514)
Browse files Browse the repository at this point in the history
  • Loading branch information
goatgoose authored Apr 25, 2024
1 parent e2bd4ee commit f711736
Showing 1 changed file with 29 additions and 36 deletions.
65 changes: 29 additions & 36 deletions .github/workflows/ci_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
override: true
run: |
rustup toolchain install stable
rustup override set stable
- uses: camshaft/rust-cache@v1

Expand Down Expand Up @@ -72,11 +72,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
override: true
run: |
rustup toolchain install stable
rustup override set stable
- name: generate bindings
run: ${{env.ROOT_PATH}}/generate.sh --skip-tests
Expand All @@ -90,11 +90,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
override: true
run: |
rustup toolchain install stable
rustup override set stable
- name: generate bindings
run: ${{env.ROOT_PATH}}/generate.sh --skip-tests
Expand All @@ -108,11 +108,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
override: true
run: |
rustup toolchain install stable
rustup override set stable
- uses: camshaft/rust-cache@v1

Expand Down Expand Up @@ -157,13 +157,11 @@ jobs:
with:
submodules: true

- uses: actions-rs/toolchain@v1.0.7
- name: Install Rust toolchain
id: toolchain
with:
toolchain: ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
profile: minimal
override: true
components: rustfmt
run: |
rustup toolchain install ${{ env.RUST_NIGHTLY_TOOLCHAIN }} --profile minimal --component rustfmt
rustup override set ${{ env.RUST_NIGHTLY_TOOLCHAIN }}
- uses: camshaft/rust-cache@v1

Expand All @@ -173,10 +171,8 @@ jobs:
run: ./${{env.ROOT_PATH}}/generate.sh

- name: Run cargo fmt
uses: actions-rs/[email protected]
with:
command: fmt
args: --manifest-path ${{env.ROOT_PATH}}/Cargo.toml --all -- --check
run: |
cargo fmt --manifest-path ${{env.ROOT_PATH}}/Cargo.toml --all -- --check
clippy:
runs-on: ubuntu-latest
Expand All @@ -185,13 +181,11 @@ jobs:
with:
submodules: true

- uses: actions-rs/toolchain@v1.0.7
- name: Install Rust toolchain
id: toolchain
with:
toolchain: stable
profile: minimal
override: true
components: clippy
run: |
rustup toolchain install stable --profile minimal --component clippy
rustup override set stable
- uses: camshaft/rust-cache@v1

Expand All @@ -206,10 +200,9 @@ jobs:

# TODO translate json reports to in-action warnings
- name: Run cargo clippy
uses: actions-rs/[email protected]
with:
command: clippy
args: --manifest-path ${{env.ROOT_PATH}}/Cargo.toml --all-targets -- -D warnings
run: |
cargo clippy --manifest-path ${{env.ROOT_PATH}}/Cargo.toml --all-targets -- -D warnings
msrv:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit f711736

Please sign in to comment.