Skip to content

Commit

Permalink
Add an armv5te test job to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored and djc committed Oct 10, 2022
1 parent 44ec391 commit 2c85ff8
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/rust.yml
Expand Up @@ -12,6 +12,7 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable, beta, 1.56]
features: [--all-features, ""]
target: [""]
exclude:
- os: ubuntu-latest
rust: beta
Expand Down Expand Up @@ -56,28 +57,48 @@ jobs:
- os: ubuntu-latest
rust: 1.56
features: --features improved_unicode
- os: ubuntu-latest
rust: stable
features: --all-features
target: --target armv5te-unknown-linux-gnueabi
use-cross: true

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/github-script@v6
id: rust-target
with:
script: |
const target = '${{ matrix.target }}'
if (target) {
const rustTarget = target.slice('--target'.length).trim()
core.setOutput('rust-target', rustTarget)
} else {
core.setOutput('rust-target', '')
}
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: ${{ steps.rust-target.outputs.rust-target }}
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.use-cross }}
command: build
args: --workspace --all-targets
args: --workspace --all-targets ${{ matrix.target }}
- uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.use-cross }}
command: test
args: --workspace
args: --workspace ${{ matrix.target }}
- uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.use-cross }}
command: test
args: --workspace ${{ matrix.features }}
args: --workspace ${{ matrix.features }} ${{ matrix.target }}

lint:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2c85ff8

Please sign in to comment.