Update Rust toolchain & actions (#437)

* Update main.yml to use new rust toolchain

* Update rust-clippy.yml to new rust toolchain

* Update to new maintained github action

* Update rust-clippy.yml codeql-action
This commit is contained in:
guylamar2006
2025-02-24 21:53:26 +01:00
committed by GitHub
parent 2d5b933f2c
commit f06e20bf13
3 changed files with 15 additions and 13 deletions
+10 -4
View File
@@ -21,6 +21,11 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Test
run: |
cargo test
@@ -29,10 +34,11 @@ jobs:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install latest stable
uses: actions-rs/toolchain@v1
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy
- name: Rust Cache
id: rust_cache
uses: Swatinem/rust-cache@v2
@@ -43,12 +49,12 @@ jobs:
# steps:
# - uses: actions/checkout@v4
# - name: Install latest stable
# uses: actions-rs/toolchain@v1
# uses: dtolnay/rust-toolchain@stable
# with:
# toolchain: stable
# components: clippy
# - name: Rust Cache
# id: rust_cache
# uses: Swatinem/rust-cache@v2
# - name: Test
# run: cargo test