summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Ieni <11428655+MarcoIeni@users.noreply.github.com>2020-11-29 23:47:25 +0100
committerGitHub <noreply@github.com>2020-11-29 17:47:25 -0500
commit9d72205be81cc7ac8036fb8c466947a20136f6d4 (patch)
treed100652c58916a7bb2083ad49772e618a41f2ead
parent64a9027f96ccca5990f85eefb0dbc0bbcb049272 (diff)
ci: add unit tests for other linux targets (#413)
* ci: add unit tests for other linux targets Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> * ci: runs all ubuntu configurations Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> * ci: update matrix variables Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com> * ci: use cross for i686 Signed-off-by: MarcoIeni <11428655+MarcoIeni@users.noreply.github.com>
-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