-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #327 from Berrysoft/ci/illumos
ci: add illumos one
- Loading branch information
Showing
6 changed files
with
100 additions
and
10 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: TestIllumos | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
toolchain: ["nightly", "beta", "stable"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Test in Illumos | ||
id: test | ||
uses: vmactions/omnios-vm@v1 | ||
with: | ||
usesh: true | ||
sync: rsync | ||
copyback: false | ||
prepare: | | ||
pkg install gcc14 curl pkg-config glib2 | ||
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf > install.sh | ||
chmod +x install.sh | ||
./install.sh -y --default-toolchain ${{ matrix.toolchain }} --profile minimal | ||
run: | | ||
. "$HOME/.cargo/env" | ||
set -ex | ||
ARGS="--features all" | ||
# Add feature "nightly" if toolchain is nightly | ||
if [ "${{ matrix.toolchain }}" = "nightly" ]; then | ||
ARGS="$ARGS --features nightly" | ||
fi | ||
RUST_BACKTRACE=1 cargo +${{ matrix.toolchain }} test --workspace $ARGS |
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
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
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
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