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

View file

@ -50,14 +50,8 @@ jobs:
key: ${{ matrix.name }}-${{ matrix.cross-target }} key: ${{ matrix.name }}-${{ matrix.cross-target }}
- name: Set up Rust toolchain - name: Set up Rust toolchain
uses: actions-rs/toolchain@v1 # Needed for SIMD
with: uses: dtolnay/rust-toolchain@nightly
# 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
- name: Build all targets - name: Build all targets
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with: