Skip to content

Commit

Permalink
Merge pull request #9 from hel-kame/main
Browse files Browse the repository at this point in the history
Fix(workflows): fix toolchain and cache issues
  • Loading branch information
antiyro authored Mar 6, 2024
2 parents 2877687 + e9c2ce9 commit 24d7b16
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
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

0 comments on commit 24d7b16

Please sign in to comment.