Skip to content

Commit

Permalink
try add some FreeBSD support
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Jan 11, 2021
1 parent 6d0fa7e commit 02b9462
Showing 1 changed file with 21 additions and 1 deletion.
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/freebsd-vm@v0.1.0
with:
prepare: |
pkg install -y curl
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
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

0 comments on commit 02b9462

Please sign in to comment.