Skip to content

Add some test support for BSDs #195

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

Merged
merged 2 commits into from
Jan 11, 2021
Merged
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
22 changes: 21 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
matrix:
# TODO: add the following targets, currently broken.
# "x86_64-unknown-redox"
target: ["aarch64-apple-ios", "aarch64-linux-android", "x86_64-apple-darwin", "x86_64-fuchsia", "x86_64-pc-windows-msvc", "x86_64-sun-solaris", "x86_64-unknown-freebsd", "x86_64-unknown-illumos", "x86_64-unknown-linux-gnu", "x86_64-unknown-netbsd"]
target: ["aarch64-apple-ios", "aarch64-linux-android", "x86_64-apple-darwin", "x86_64-fuchsia", "x86_64-pc-windows-msvc", "x86_64-sun-solaris", "x86_64-unknown-illumos", "x86_64-unknown-linux-gnu", "x86_64-unknown-netbsd"]
steps:
- uses: actions/checkout@master
- name: Install Rust
Expand Down Expand Up @@ -89,6 +89,26 @@ jobs:
- name: Run check
run: cargo hack check --feature-powerset --all-targets --examples --bins --tests --target ${{ matrix.target }}

Test_FreeBSD:
name: Test
runs-on: macos-latest
strategy:
matrix:
target: ["x86_64-unknown-freebsd"]
steps:
- uses: actions/checkout@master
- name: Run check
uses: vmactions/[email protected]
with:
prepare: |
pkg install -y curl
curl https://sh.rustup.rs -sSf | sh -s -- -y --profile minimal
run: |
set path=($HOME/.cargo/bin $path)
cargo install cargo-hack
cargo hack test --feature-powerset --target ${{ matrix.target }}
cargo hack test --feature-powerset --release --target ${{ matrix.target }}

Publish_docs:
name: Publish Documentation
runs-on: ubuntu-latest
Expand Down