-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some test support for BSDs in CI
- Loading branch information
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|