Skip to content

Commit

Permalink
Using a different Rust toolchain action for CI jobs. (#76)
Browse files Browse the repository at this point in the history
* Using a different Rust toolchain action for CI jobs.

* Using a different Rust toolchain action, because the old one is deprecated.

* Fixing broken Rust toolchain CI parameters.

* Adding debug info to build.

* Moving CI Windows machines to 2022.
  • Loading branch information
kevinswiber authored Mar 26, 2024
1 parent 7f0ea7d commit b40d8c6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 26 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
schedule:
- cron: '00 00 * * *'
- cron: "00 00 * * *"

jobs:
test:
Expand Down Expand Up @@ -69,23 +69,23 @@ jobs:
os: macos-latest
rust: nightly
- build: win-msvc
os: windows-2019
os: windows-2022
rust: nightly
- build: win-gnu
os: windows-2019
os: windows-2022
rust: nightly-x86_64-gnu

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust
uses: ructions/[email protected]
id: toolchain
uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- run: rustup override set ${{steps.toolchain.outputs.name}}
- run: rustup component add rustfmt clippy

- name: Use Cross
if: matrix.target != '' && matrix.build != 'wasm32'
Expand Down Expand Up @@ -125,12 +125,9 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: ructions/[email protected]
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt
id: toolchain
uses: dtolnay/rust-toolchain@stable
- run: rustup component add rustfmt
- name: Check formatting
run: |
cargo fmt --all -- --check
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
# branches:
# - ag/release
tags:
- '[0-9]+.[0-9]+.[0-9]+**'
- "[0-9]+.[0-9]+.[0-9]+**"
jobs:
create-release:
name: create-release
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:

build-release:
name: build-release
needs: ['create-release']
needs: ["create-release"]
runs-on: ${{ matrix.os }}
env:
# For some builds, we use cross to test on 32-bit and big-endian
Expand Down Expand Up @@ -118,12 +118,12 @@ jobs:
# ci/macos-install-packages

- name: Install Rust
uses: ructions/[email protected]
id: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
target: ${{ matrix.target }}
- run: rustup override set ${{steps.toolchain.outputs.name}}
- run: rustup target add ${{ matrix.target }}

- name: Use Cross
if: matrix.target != '' && matrix.build != 'wasm32'
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
id-token: write

concurrency:
group: 'pages'
group: "pages"
cancel-in-progress: true

jobs:
Expand All @@ -23,12 +23,9 @@ jobs:
uses: actions/checkout@v3

- name: Install Rust
uses: ructions/[email protected]
with:
profile: minimal
toolchain: 1.64.0
override: true

id: toolchain
uses: dtolnay/[email protected]
- run: rustup override set ${{steps.toolchain.outputs.name}}
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit b40d8c6

Please sign in to comment.