Skip to content

Commit

Permalink
switch to setup-rust-toolchain instead of dtolnay
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Dec 24, 2024
1 parent fd0443a commit 59e971d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ on:
- "**/Cargo.toml"
- "**/Cargo.lock"
schedule:
# Once week at midnight UTC
# Once a week at midnight UTC
- cron: "0 0 * * 0"
workflow_dispatch:

jobs:
sec:
audit:
name: Security audit
runs-on: ubuntu-latest
steps:
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Build
run: make build
Expand All @@ -47,15 +45,15 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Bump homebrew-core formula
- name: Publish to homebrew
uses: mislav/bump-homebrew-formula-action@v3
if: matrix.os == 'macos-latest'
env:
COMMITTER_TOKEN: ${{ secrets.BREW_TOKEN }}
with:
formula-name: onefetch

- name: Publish executable to WinGet
- name: Publish to WinGet
uses: vedantmgoyal9/winget-releaser@main
if: matrix.os == 'windows-latest'
with:
Expand All @@ -69,13 +67,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Publish to crates.io (ascii)
env:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/language-badge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Generate Language Badge
on:
schedule:
# Once week at midnight UTC
# Once a week at midnight UTC
- cron: "0 0 * * 0"
workflow_dispatch:

Expand All @@ -10,14 +10,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.BADGE_TOKEN }}

- name: Install Rust
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Get Language Count
id: vars
run: echo "::set-output name=language_count::$(cargo run -- --languages | wc -l)"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/msrv-badge.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Generate MSRV Badge
on:
schedule:
# Once every week at midnight UTC
# Once a week at midnight UTC
- cron: "0 0 * * 0"
workflow_dispatch:

Expand All @@ -10,14 +10,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.BADGE_TOKEN }}

- name: Get Minimum Supported Rust Version
uses: spenserblack/actions-msrv@v0.4
id: get-msrv
timeout-minutes: 60

- name: Create Badge
run: curl https://img.shields.io/badge/rustc-${{ steps.get-msrv.outputs.msrv }}%2B-blue > ./assets/msrv-badge.svg
- name: Commit Badge
Expand Down

0 comments on commit 59e971d

Please sign in to comment.