diff options
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/solaris.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/solaris.yml b/.github/workflows/solaris.yml new file mode 100644 index 0000000..2c6ee49 --- /dev/null +++ b/.github/workflows/solaris.yml | |||
@@ -0,0 +1,32 @@ | |||
1 | # GitHub Actions workflow to run tests on a Solaris VM. | ||
2 | name: "Solaris" | ||
3 | |||
4 | on: | ||
5 | workflow_dispatch: | ||
6 | schedule: | ||
7 | - cron: "0 0 * * *" # At 00:00 daily. | ||
8 | |||
9 | jobs: | ||
10 | test: | ||
11 | name: "Solaris" | ||
12 | runs-on: ubuntu-latest | ||
13 | permissions: | ||
14 | contents: read | ||
15 | steps: | ||
16 | - name: "Checkout repository" | ||
17 | uses: actions/checkout@v4 | ||
18 | |||
19 | - name: "Setup" | ||
20 | run: | | ||
21 | sudo apt-get update | ||
22 | sudo apt-get install -y automake autoconf libtool | ||
23 | ./autogen.sh | ||
24 | |||
25 | - name: "Build on VM" | ||
26 | uses: vmactions/solaris-vm@v1 | ||
27 | with: | ||
28 | prepare: | | ||
29 | pkg install gcc make | ||
30 | run: | | ||
31 | MAKE=gmake ./configure | ||
32 | gmake -j2 check || (cat tests/test-suite.log && exit 1) | ||