1
0
Fork 0

Swap out the deprecated actions-rs/toolchain

This commit is contained in:
Robbert van der Helm 2023-01-25 17:22:26 +01:00
parent a5a2ffeea1
commit 888b508485
3 changed files with 10 additions and 25 deletions

View file

@ -57,17 +57,12 @@ jobs:
key: ${{ matrix.name }}-${{ matrix.cross-target }}
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
# Needed for SIMD
uses: dtolnay/rust-toolchain@nightly
with:
# FIXME: Needed for SIMD. Diopser can be compiled without SIMD support
# though, we'd actually need to test whether both versions
# compile
toolchain: nightly
profile: minimal
default: true
# The macOS AArch64/universal build is done from an x86_64 macOS CI
# runner, so it needs to be cross compiled
target: ${{ matrix.cross-target }}
# The macOS AArch64 build is done from an x86_64 macOS CI runner, so
# it needs to be cross compiled
targets: ${{ matrix.cross-target }}
- name: Package all targets from bundler.toml
# Instead of hardcoding which targets to build and package, we'll
# package everything that's got en entry in the `bundler.toml` file

View file

@ -45,13 +45,9 @@ jobs:
key: ${{ matrix.name }}-${{ matrix.cross-target }}
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
# Nightly is needed to document the SIMD feature and for the
# `doc_auto_cfg` feature
toolchain: nightly
profile: minimal
default: true
# Nightly is needed to document the SIMD feature and for the
# `doc_auto_cfg` feature
uses: dtolnay/rust-toolchain@nightly
- name: Build all targets
uses: actions-rs/cargo@v1
with:

View file

@ -50,14 +50,8 @@ jobs:
key: ${{ matrix.name }}-${{ matrix.cross-target }}
- name: Set up Rust toolchain
uses: actions-rs/toolchain@v1
with:
# FIXME: Needed for SIMD. Diopser can be compiled without SIMD support
# though, we'd actually need to test whether both versions
# compile
toolchain: nightly
profile: minimal
default: true
# Needed for SIMD
uses: dtolnay/rust-toolchain@nightly
- name: Build all targets
uses: actions-rs/cargo@v1
with: