From 2a8d5d7916347e7648a0a0a550b31cba3b75cdf1 Mon Sep 17 00:00:00 2001 From: Sunshine Date: Tue, 24 Sep 2024 18:33:09 +0000 Subject: [PATCH] add NetBSD CI job --- .github/workflows/ci-netbsd.yml | 34 +++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 8 +++----- 2 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/ci-netbsd.yml diff --git a/.github/workflows/ci-netbsd.yml b/.github/workflows/ci-netbsd.yml new file mode 100644 index 0000000..977a0f0 --- /dev/null +++ b/.github/workflows/ci-netbsd.yml @@ -0,0 +1,34 @@ +# CI NetBSD GitHub Actions workflow for monolith + +name: CI + +on: + pull_request: + branches: [ master ] + paths-ignore: + - 'assets/' + - 'dist/' + - 'snap/' + - 'Dockerfile' + - 'LICENSE' + - 'Makefile' + - 'monolith.nuspec' + - 'README.md' + +jobs: + build_and_test: + runs-on: ubuntu-latest + name: Build and test (netbsd) + steps: + - name: "Checkout repository" + uses: actions/checkout@v4 + + - name: Test in NetBSD + uses: vmactions/netbsd-vm@v1 + with: + usesh: true + prepare: | + /usr/sbin/pkg_add rust mktools gmake pkgconf cwrappers + run: | + cargo build --all --locked --verbose --no-default-features + cargo test --all --locked --verbose --no-default-features diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3dd902..7521989 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,21 +17,19 @@ on: jobs: build_and_test: + name: Build and test strategy: matrix: os: - ubuntu-latest - macos-latest - windows-latest - rust: - - stable - - beta - - nightly runs-on: ${{ matrix.os }} steps: - run: git config --global core.autocrlf false - - uses: actions/checkout@v2 + - name: "Checkout repository" + uses: actions/checkout@v4 - name: Build run: cargo build --all --locked --verbose