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

Update Rust toolchain & actions #437

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
14 changes: 10 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

8 changes: 3 additions & 5 deletions .github/workflows/release_on_v_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,9 @@ jobs:
run: cargo build --release
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.once.outputs.upload_url }}
asset_path: ${{ github.workspace }}/${{ matrix.file }}
asset_name: ${{ matrix.asset_name }}
asset_content_type: application/octet-stream
files: ${{ github.workspace }}/${{ matrix.file }}
tag_name: ${{ github.ref }}
6 changes: 2 additions & 4 deletions .github/workflows/rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
components: clippy
override: true

- name: Install required cargo
run: cargo install clippy-sarif sarif-fmt
Expand All @@ -49,7 +47,7 @@ jobs:
continue-on-error: true

- name: Upload analysis results to GitHub
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: rust-clippy-results.sarif
wait-for-processing: true
Loading