Skip to content

Commit

Permalink
fix(.github): use nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Jan 12, 2025
1 parent 0af4b90 commit a14418a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
shell: bash
run: sudo apt update && sudo apt install -y protobuf-compiler

- name: Use Nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly

- uses: actions/checkout@v4

- name: Rust Cache
Expand Down
47 changes: 38 additions & 9 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,20 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Nightly with rustfmt
- name: Use Nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt

- uses: actions/checkout@v4

- name: Check formatting
run: cargo +nightly fmt --all -- --check
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --all -- --check

check:
needs: lint
Expand All @@ -30,6 +33,12 @@ jobs:
shell: bash
run: sudo apt update && sudo apt install -y protobuf-compiler

- name: Use Nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly

- uses: actions/checkout@v4

- name: Rust Cache
Expand All @@ -40,8 +49,11 @@ jobs:
key: check

- name: Check Build
run: |
cargo check --release --locked --all-features --workspace
uses: actions-rs/cargo@v1
with:
command: check
toolchain: nightly
args: --release --locked --all-features --workspace

clippy:
needs: lint
Expand All @@ -55,6 +67,12 @@ jobs:
shell: bash
run: sudo apt update && sudo apt install -y protobuf-compiler

- name: Use Nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly

- uses: actions/checkout@v4

- name: Rust Cache
Expand All @@ -68,7 +86,8 @@ jobs:
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --release --locked --all-features --workspace -- --deny warnings
toolchain: nightly
args: --release --locked --all-features --workspace

test:
needs: lint
Expand All @@ -78,6 +97,12 @@ jobs:
shell: bash
run: sudo apt update && sudo apt install -y protobuf-compiler

- name: Use Nightly
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly

- uses: actions/checkout@v4

- name: Rust Cache
Expand All @@ -88,4 +113,8 @@ jobs:
key: test

- name: Run tests
run: cargo test --release --locked --all-features --workspace
uses: actions-rs/cargo@v1
with:
command: test
toolchain: nightly
args: --release --locked --all-features --workspace

0 comments on commit a14418a

Please sign in to comment.