From 4ade4aac673d601f1f230189f1e662740d1178db Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Sat, 16 Aug 2025 17:40:53 +0300 Subject: [PATCH 1/3] Rename simple.yml to macwin.yml --- .github/workflows/{simple.yml => macwin.yml} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{simple.yml => macwin.yml} (93%) diff --git a/.github/workflows/simple.yml b/.github/workflows/macwin.yml similarity index 93% rename from .github/workflows/simple.yml rename to .github/workflows/macwin.yml index 7071036..c7fbada 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/macwin.yml @@ -1,4 +1,4 @@ -name: Simple +name: MacWin on: push: branches: @@ -9,7 +9,7 @@ on: jobs: native: - name: "Simple: GHC ${{ matrix.ghc }} on ${{ matrix.os }}" + name: "GHC ${{ matrix.ghc }} on ${{ matrix.os }}" runs-on: ${{ matrix.os }} strategy: matrix: @@ -24,7 +24,7 @@ jobs: git config --global core.eol lf - name: Checkout - uses: actions/checkout@v3.0.2 + uses: actions/checkout@v4 - name: Set up Haskell id: setup-haskell From 62dccdf2e3d418c2639bcf1bb90fb757bb7a8c19 Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Sat, 16 Aug 2025 17:48:15 +0300 Subject: [PATCH 2/3] Add FreeBSD job --- .github/workflows/bsd.yml | 46 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/bsd.yml diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml new file mode 100644 index 0000000..7002d6f --- /dev/null +++ b/.github/workflows/bsd.yml @@ -0,0 +1,46 @@ +name: BSD +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + freebsd: + name: FreeBSD + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Test in FreeBSD + id: test + uses: vmactions/freebsd-vm@v1 + with: + release: "14.3" + usesh: true + prepare: | + # pkg-static update + # pkg-static upgrade -y pkg + pkg install -y ghc hs-cabal-install + + run: | + pwd + ls -lah + whoami + env + freebsd-version + sysctl hw.model + sysctl hw.ncpu + sysctl hw.physmem + sysctl hw.usermem + + ghc --version + cabal --version + + cabal update + cabal build all --enable-tests --dry-run + cabal build all --enable-tests + cabal test all --enable-tests --test-show-details=direct From 652e5311fb3b6157225451228097d2bc302fc7dc Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Mon, 18 Aug 2025 00:56:24 +0300 Subject: [PATCH 3/3] Add NetBSD job --- .github/workflows/bsd.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml index 7002d6f..4e9da3a 100644 --- a/.github/workflows/bsd.yml +++ b/.github/workflows/bsd.yml @@ -44,3 +44,39 @@ jobs: cabal build all --enable-tests --dry-run cabal build all --enable-tests cabal test all --enable-tests --test-show-details=direct + + netbsd: + name: NetBSD + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Test in NetBSD + id: test + uses: vmactions/netbsd-vm@v1 + with: + release: "10.1" + usesh: true + prepare: | + /usr/sbin/pkg_add ghc cabal-install + + run: | + cd $GITHUB_WORKSPACE; + pwd + ls -lah + whoami + env + /sbin/sysctl hw.model + /sbin/sysctl hw.ncpu + /sbin/sysctl hw.physmem + /sbin/sysctl hw.usermem + /usr/bin/vmstat + + ghc --version + cabal --version + + cabal update + cabal build all --enable-tests --dry-run + cabal build all --enable-tests + cabal test all --enable-tests --test-show-details=direct