Skip to content

Commit

Permalink
CI: Pin Rust version to 1.72.1 for the MIPS targets
Browse files Browse the repository at this point in the history
  • Loading branch information
tatsuya6502 committed Nov 11, 2023
1 parent 08b442e commit 3c4e920
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/LinuxCrossCompileTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,23 @@ jobs:
matrix:
platform:
- target: aarch64-unknown-linux-musl
rust-version: stable
- target: i686-unknown-linux-musl
rust-version: stable
- target: armv7-unknown-linux-musleabihf
rust-version: stable
# Platforms without AtomicU64 support.
- target: armv5te-unknown-linux-musleabi
cargo-opts: "--no-default-features" # Disable atomic64 and quanta features.
rust-version: stable
- target: mips-unknown-linux-musl
cargo-opts: "--no-default-features" # Disable atomic64 and quanta features.
rust-version: "1.72.1"
cargo-version: "+1.72.1"
- target: mipsel-unknown-linux-musl
cargo-opts: "--no-default-features" # Disable atomic64 and quanta features.
rust-version: "1.72.1"
cargo-version: "+1.72.1"

steps:
- name: Checkout Moka
Expand All @@ -43,7 +51,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
toolchain: ${{ matrix.platform.rust-version }}
targets: ${{ matrix.platform.target }}

- name: Install cross
Expand All @@ -62,9 +70,13 @@ jobs:
- run: cargo clean

- name: Run tests (sync feature)
run: cross test --release -F sync --target ${{ matrix.platform.target }} ${{ matrix.platform.cargo-opts }}
run: |
cross ${{ matrix.platform.carge-version }} test --release -F sync \
--target ${{ matrix.platform.target }} ${{ matrix.platform.cargo-opts }}
env:
RUSTFLAGS: '--cfg rustver'

- name: Run tests (future feature)
run: cross test --release -F future --target ${{ matrix.platform.target }} ${{ matrix.platform.cargo-opts }}
run: |
cross ${{ matrix.platform.cargo-version }} test --release -F future \
--target ${{ matrix.platform.target }} ${{ matrix.platform.cargo-opts }}

0 comments on commit 3c4e920

Please sign in to comment.