Skip to content

Commit

Permalink
💚 Fixing the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Perestoronin committed Jan 13, 2024
1 parent 357839a commit 9c1b163
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 33 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,35 +21,31 @@ jobs:

steps:
- name: ✨ Set up the toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
profile: minimal
target: aarch64-unknown-linux-gnu
override: true

- name: 📥 Checkout
uses: actions/checkout@v4
targets: "aarch64-unknown-linux-gnu"
components: "clippy"

- name: ⚡️ Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: ✨ Set up B(inary)Install
uses: cargo-bins/cargo-binstall@main

- name: ✨ Set up Cross
run: cargo binstall cross

- name: 📥 Checkout
uses: actions/checkout@v4

- name: 🧪 Test
uses: actions-rs/cargo@v1
with:
use-cross: true
command: test
args: -- --include-ignored
run: cross test -- --include-ignored
env:
CROSS_CONTAINER_OPTS: "--network=host"

- name: 💬 Clippy
uses: actions-rs/clippy-check@v1
run: cross clippy --test
if: github.event_name == 'pull_request'
continue-on-error: true
with:
use-cross: true
token: ${{ secrets.GITHUB_TOKEN }}
args: --tests
24 changes: 9 additions & 15 deletions .github/workflows/udeps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,21 @@ jobs:

steps:
- name: ✨ Set up the toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
profile: minimal
override: true

- name: 📥 Checkout
uses: actions/checkout@v4
uses: dtolnay/rust-toolchain@nightly

- name: ⚡️ Rust Cache
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: ✨ Set up B(inary)Install
uses: cargo-bins/cargo-binstall@main

- name: ✨ Install udeps
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-udeps
run: cargo binstall cargo-udeps

- name: 📥 Checkout
uses: actions/checkout@v4

- name: ❓ Udeps
uses: actions-rs/cargo@v1
with:
command: udeps
run: cargo udeps

0 comments on commit 9c1b163

Please sign in to comment.