From 9d72205be81cc7ac8036fb8c466947a20136f6d4 Mon Sep 17 00:00:00 2001 From: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com> Date: Sun, 29 Nov 2020 23:47:25 +0100 Subject: 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> --- .github/workflows/ci.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 49db2e8..ed56015 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 -- cgit v1.2.3