Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit run mode and --target for CI tests #63

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,54 +82,76 @@ jobs:
target: x86_64-unknown-linux-gnu
rust: stable
os: ubuntu-latest
test-type: run
- thing: macos-x86_64
target: x86_64-apple-darwin
rust: stable
os: macos-latest
test-type: run

# FIXME: these targets fail to compile due to linker mismatch
- thing: arm-android
target: arm-linux-androideabi
rust: stable
os: ubuntu-latest
test-type: run
- thing: arm64-android
target: aarch64-linux-android
rust: stable
os: ubuntu-latest
test-type: run
- thing: i686-android
target: i686-linux-android
rust: stable
os: ubuntu-latest
test-type: run
- thing: x86_64-android
target: x86_64-linux-android
rust: stable
os: ubuntu-latest
test-type: run

# FIXME: these targets fail to compile due missing cross-compilers
- thing: i686-linux
target: i686-unknown-linux-gnu
rust: stable
os: ubuntu-latest
test-type: run
- thing: arm-linux
target: arm-unknown-linux-gnueabi
rust: stable
os: ubuntu-latest
test-type: run
- thing: aarch64-linux
target: aarch64-unknown-linux-gnu
rust: stable
os: ubuntu-latest
test-type: run
- thing: x86_64-musl
target: x86_64-unknown-linux-musl
rust: stable
os: ubuntu-latest
test-type: run

# FIXME: mingw target fails to compile due missing cross-compilers
# (it fails building on Windows as well, for its own reasons)
- thing: x86_64-mingw
target: x86_64-pc-windows-gnu
rust: stable
os: ubuntu-latest
test-type: run
# CI's Windows doesn't have required root certs,
# breaking tokio-boring and hyper-boring tests.
- thing: i686-msvc
target: i686-pc-windows-msvc
rust: stable-x86_64-msvc
os: windows-latest
test-type: run-without-hyper
- thing: x86_64-msvc
target: x86_64-pc-windows-msvc
rust: stable-x86_64-msvc
os: windows-latest
test-type: run-without-hyper

steps:
- uses: actions/checkout@v2
Expand All @@ -152,10 +174,9 @@ jobs:
- name: Set LIBCLANG_PATH
if: startsWith(matrix.os, 'windows')
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
- if: startsWith(matrix.os, 'windows')
# CI's Windows doesn't have require root certs
run: cargo test --workspace --exclude tokio-boring --exclude hyper-boring
name: Run tests (Windows)
- if: "!startsWith(matrix.os, 'windows')"
run: cargo test
name: Run tests (not Windows)
- if: matrix.test-type == 'run-without-hyper'
run: cargo test --target ${{ matrix.target }} --workspace --exclude tokio-boring --exclude hyper-boring
name: Run tests (without hyper)
- if: matrix.test-type == 'run'
run: cargo test --target ${{ matrix.target }}
name: Run tests