Skip to content

Commit

Permalink
Don't use matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Nov 3, 2023
1 parent 17bddf5 commit 39de003
Showing 1 changed file with 10 additions and 29 deletions.
39 changes: 10 additions & 29 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,29 @@ on:
- master

jobs:
# This job downloads and stores `cross` as an artifact, so that it can be
# redownloaded across all of the jobs. Currently this copied pasted between
# `ci.yml` and `deploy.yml`. Make sure to update both places when making
# changes.
install-cross:
runs-on: ubuntu-latest
env:
platform: linux-musl
steps:
- uses: XAMPPRocky/get-github-release@v1
id: cross
with:
owner: rust-embedded
repo: cross
matches: ${{ matrix.platform }}
matches: ${{ env.platform }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: cross-${{ matrix.platform }}
name: cross-${{ env.platform }}
path: ${{ steps.cross.outputs.install_path }}
strategy:
matrix:
platform: [linux-musl, apple-darwin]

linux:
runs-on: ubuntu-latest
needs: install-cross
env:
channel: stable
target: x86_64-unknown-linux-musl
steps:
- uses: actions/checkout@v3
- name: Download Cross
Expand All @@ -42,23 +40,6 @@ jobs:
name: cross-linux-musl
path: /tmp/
- run: chmod +x /tmp/cross
- run: ci/set_rust_version.bash ${{ matrix.channel }} ${{ matrix.target }}
- run: ci/build.bash /tmp/cross ${{ matrix.target }}
# These targets have issues with being tested so they are disabled
# by default. You can try disabling to see if they work for
# your project.
- run: ci/test.bash /tmp/cross ${{ matrix.target }}
if: |
!contains(matrix.target, 'android') &&
!contains(matrix.target, 'bsd') &&
!contains(matrix.target, 'solaris') &&
matrix.target != 'armv5te-unknown-linux-musleabi' &&
matrix.target != 'sparc64-unknown-linux-gnu'
strategy:
fail-fast: true
matrix:
channel:
- stable
target:
- x86_64-unknown-linux-gnu
- run: ci/set_rust_version.bash ${{ channel }} ${{ target }}
- run: ci/build.bash /tmp/cross ${{ target }}
- run: ci/test.bash /tmp/cross ${{ target }}

0 comments on commit 39de003

Please sign in to comment.