Skip to content

Commit

Permalink
try and fix CI for MIPS/MIPSEL
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz committed Sep 15, 2023
1 parent 19d43b1 commit bc110e5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,32 @@ jobs:
- armv5te-unknown-linux-gnueabi
- arm-unknown-linux-gnueabi
- armv7-unknown-linux-gnueabihf
steps:
- uses: actions/checkout@v3
- name: Ensure Rust up-to-date
run: rustup default stable
- name: Install Cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: Run Tests
run: cross test --target ${{ matrix.target }} --no-default-features --features=prost -- --test-threads=1
cross-test-mips-mipssel:
name: Test ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
target:
- mips-unknown-linux-gnu
- mipsel-unknown-linux-gnu
steps:
- uses: actions/checkout@v3
- name: Install Rust Stable
run: rustup default stable
- name: Ensure Rust up-to-date
run: rustup default nightly
- name: Install Cross
run: cargo install cross --git https://github.com/cross-rs/cross
- name: Run Tests
run: cross test --target ${{ matrix.target }} --no-default-features --features=prost -- --test-threads=1
env:
RUSTFLAGS: "-C opt-level=1"
docs:
runs-on: ubuntu-latest
env:
Expand Down
5 changes: 5 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[target.mips-unknown-linux-gnu]
build-std = true

[target.mips-unknown-linux-gnu.env]
passthrough = ["RUSTFLAGS"]

0 comments on commit bc110e5

Please sign in to comment.