-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using a different Rust toolchain action for CI jobs. (#76)
* 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
1 parent
7f0ea7d
commit b40d8c6
Showing
3 changed files
with
20 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
branches: | ||
- main | ||
schedule: | ||
- cron: '00 00 * * *' | ||
- cron: "00 00 * * *" | ||
|
||
jobs: | ||
test: | ||
|
@@ -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' | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -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' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ permissions: | |
id-token: write | ||
|
||
concurrency: | ||
group: 'pages' | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
@@ -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: | ||
|