Skip to content

Commit

Permalink
Use rustup default
Browse files Browse the repository at this point in the history
  • Loading branch information
timrogers committed Nov 30, 2024
1 parent d04357d commit 1defe02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,8 @@ jobs:
run: sudo apt-get update && sudo apt-get install libudev-dev
if: runner.os == 'Linux'
- uses: actions/checkout@v4
- name: Poke rustup to install the toolchain (self-hosted runners only)
run: rustup show
if: matrix.job.runs_on == 'self-hosted'
- run: rustup show active-toolchain
- run: rustup override list
- run: cd ../litra-rs
- name: Poke rustup to install the toolchain (self-hosted runners only)
run: rustup show
if: matrix.job.runs_on == 'self-hosted'
- run: rustup show active-toolchain
- run: rustup override list
- name: Use Rust 1.83.0
run: rustup default 1.83.0
- uses: Swatinem/rust-cache@v2
- name: Build in release mode
run: cargo build --release --target=${{ matrix.job.target }}
Expand Down Expand Up @@ -164,6 +155,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install libudev-dev
run: sudo apt-get update && sudo apt-get install libudev-dev
- name: Use Rust 1.83.0
run: rustup default 1.83.0
- uses: Swatinem/rust-cache@v2
- name: Install cargo-edit
run: cargo install cargo-edit
Expand Down Expand Up @@ -221,6 +214,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install libudev-dev
run: sudo apt-get update && sudo apt-get install libudev-dev
- name: Use Rust 1.83.0
run: rustup default 1.83.0
- uses: Swatinem/rust-cache@v2
- name: Build in release mode
run: cargo build --release --target=${{ matrix.job.target }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5

- name: Use Rust 1.83.0
run: rustup default 1.83.0

- uses: Swatinem/rust-cache@v2

- name: Detect code style issues
Expand Down

0 comments on commit 1defe02

Please sign in to comment.