ci2 #34
Workflow file for this run
This file contains hidden or 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
| on: [push, pull_request] | |
| name: Test | |
| jobs: | |
| test-ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Stable Go for Bootstrap | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: 'stable' | |
| - name: Download Go Tip | |
| run: | | |
| go install golang.org/dl/gotip@latest | |
| gotip download | |
| echo "$HOME/sdk/gotip/bin" >> $GITHUB_PATH | |
| - name: Install OpenMPI | |
| run: sudo apt update && sudo apt install -y --no-install-recommends openmpi-bin libopenmpi-dev | |
| - name: Build | |
| run: go build ./... | |
| - name: Test | |
| run: mpirun -n 4 --oversubscribe go test . | |
| test-void: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: voidlinux/voidlinux:latest | |
| steps: | |
| - name: Install OpenMPI and base Go | |
| run: | | |
| xbps-install -Sy --repository=https://repo-default.voidlinux.org/current xbps | |
| xbps-install -Sy ca-certificates | |
| xbps-install -Sy git openmpi libopenmpi openmpi-devel go | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Go Tip | |
| run: | | |
| go install golang.org/dl/gotip@latest | |
| $HOME/go/bin/gotip download | |
| echo "$HOME/sdk/gotip/bin" >> $GITHUB_PATH | |
| - name: Build | |
| run: go build ./... | |
| - name: Test | |
| run: mpirun -n 4 --oversubscribe go test . | |
| test-freebsd: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - uses: vmactions/freebsd-vm@v1 | |
| with: | |
| usesh: true | |
| prepare: pkg install -y openmpi go | |
| run: | | |
| go install golang.org/dl/gotip@latest | |
| $HOME/go/bin/gotip download | |
| export PATH=$HOME/sdk/gotip/bin:$PATH | |
| go build ./... | |
| mpirun -n 4 --oversubscribe go test . | |
| test-openbsd: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - uses: vmactions/openbsd-vm@v1 | |
| with: | |
| prepare: pkg_add git go openmpi | |
| run: | | |
| go install golang.org/dl/gotip@latest | |
| $HOME/go/bin/gotip download | |
| export PATH=$HOME/sdk/gotip/bin:$PATH | |
| go build ./... | |
| mpirun -n 4 --oversubscribe go test . | |
| test-netbsd: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - uses: vmactions/netbsd-vm@v1 | |
| with: | |
| prepare: | | |
| export PKG_PATH="https://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r)/All/" | |
| pkg_add git go openmpi | |
| run: | | |
| go install golang.org/dl/gotip@latest | |
| $HOME/go/bin/gotip download | |
| export PATH=$HOME/sdk/gotip/bin:$PATH | |
| go build ./... | |
| mpirun -n 4 --oversubscribe go test . |