summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml22
1 files changed, 12 insertions, 10 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 49db2e8f..ed560153 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -5,17 +5,17 @@ jobs:
unit_tests:
name: Unit tests
- runs-on: ${{ matrix.os }}
+ runs-on: ${{ matrix.job.os }}
strategy:
matrix:
- os: [macos-latest, ubuntu-latest, windows-latest]
- include:
- - os: macos-latest
- target: x86_64-apple-darwin
- - os: ubuntu-latest
- target: x86_64-unknown-linux-gnu
- - os: windows-latest
- target: x86_64-pc-windows-msvc
+ job:
+ - { os: macos-latest, target: x86_64-apple-darwin, use-cross: false }
+ - { os: windows-latest, target: x86_64-pc-windows-msvc, use-cross: false }
+ - { os: ubuntu-latest , target: x86_64-unknown-linux-gnu, use-cross: false }
+ - { os: ubuntu-latest, target: x86_64-unknown-linux-musl, use-cross: true }
+ - { os: ubuntu-latest, target: i686-unknown-linux-gnu, use-cross: true }
+ - { os: ubuntu-latest, target: arm-unknown-linux-gnueabihf, use-cross: true }
+ - { os: ubuntu-latest, target: aarch64-unknown-linux-gnu, use-cross: true }
steps:
- name: Checkout repository
uses: actions/checkout@v2
@@ -23,13 +23,15 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
+ target: ${{ matrix.job.target }}
profile: minimal
override: true
- name: Unit tests
uses: actions-rs/cargo@v1
with:
command: test
- args: --target ${{ matrix.target }} --verbose
+ use-cross: ${{ matrix.job.use-cross }}
+ args: --target ${{ matrix.job.target }} --verbose
integration_tests:
name: Integration tests