Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(workflows): fix toolchain and cache issues #9

Merged
merged 5 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/linters-cargo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,25 @@ on:
workflow_call:

jobs:
# FIXME: check why this is rebuilding the project every time
cargo-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
shared-key: "cache"
save-if: false
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2023-08-24
components: rustfmt, clippy
target: wasm32-unknown-unknown
profile: minimal

- name: Setup build deps
run: |
sudo apt-get update
sudo apt-get install -y clang llvm libudev-dev protobuf-compiler libasound2-dev

- name: Format and clippy
run: |
cargo fmt -- --check
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/rust-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,12 @@ jobs:
- uses: Swatinem/rust-cache@v2
with:
shared-key: "cache"
- uses: actions/cache@v3
- uses: actions-rs/toolchain@v1
with:
path: |
target/release/deoxys
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-${{
github.run_id }}
restore-keys: |
${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
${{ runner.os }}-cargo-

- name: Setup rust toolchain
if: steps.cache.outputs.cache-hit != 'true'
run: rustup show
toolchain: nightly-2023-08-24
components: rustfmt, clippy
target: wasm32-unknown-unknown
profile: minimal

- name: Setup check deps
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ git # Deoxys Changelog

## Next release

- fix(worflows): fix toolchain and cache issue
- feat: Removal of the hardcoded mainnet configuration
- refactor: pass new CI
- fix(workflows): Fix deoxys CI
Expand Down
Loading