diff --git a/.github/workflows/bsd.yml b/.github/workflows/bsd.yml new file mode 100644 index 0000000..4e9da3a --- /dev/null +++ b/.github/workflows/bsd.yml @@ -0,0 +1,82 @@ +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 + + 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 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