Skip to content

Commit

Permalink
build: replace deprecated actions-rs with dtolnay/rust-toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
FineFindus committed Dec 24, 2023
1 parent 893fecb commit 6c28a98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ jobs:
runs-on: ubuntu-22.04 #this is not the same as ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

uses: actions/checkout@v4
- name: Install rust stable toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Cache dependencies
uses: actions/cache@v3
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ jobs:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt
- name: Create blank versions of configured file
run: echo -e "" >> src/config.rs
Expand All @@ -29,7 +27,7 @@ jobs:
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Add Flathub Beta remote
run: |
flatpak --user remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
Expand All @@ -46,7 +44,7 @@ jobs:
name: Spell Checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit 6c28a98

Please sign in to comment.