.github: bump vmactions/freebsd-vm from 1.5.3 to 1.5.5 #586
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
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| env: | |
| GO_VERSION: '1.26.4' | |
| FREEBSD_RELEASE: '15.0' | |
| NETBSD_RELEASE: '10.1' | |
| OPENBSD_RELEASE: '7.9' | |
| DRAGONFLYBSD_RELEASE: '6.4.1' | |
| SOLARIS_RELEASE: '11.4-gcc' # use -gcc variant for cgo | |
| jobs: | |
| build-and-test: | |
| strategy: | |
| matrix: | |
| # Latest two supported releases. | |
| go-version: ['1.25', '1.26'] | |
| os: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm, macos-14, macos-15, macos-26, windows-2025] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Install Go | |
| uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v5.0.2 | |
| with: | |
| go-version: ${{ matrix.go-version }} | |
| - name: Check formatting | |
| if: ${{ matrix.go-version == '1.26' && matrix.os == 'ubuntu-24.04' }} | |
| run: diff -u <(echo -n) <(gofmt -d .) | |
| - name: Check Go modules | |
| if: ${{ matrix.go-version == '1.26' && matrix.os == 'ubuntu-24.04' }} | |
| run: | | |
| go mod tidy -diff | |
| - name: Generate | |
| if: ${{ matrix.go-version == '1.26' }} | |
| run: | | |
| go generate | |
| git diff --exit-code | |
| - name: Build (native) | |
| run: go build ./... | |
| - name: Test (native) | |
| run: go test -v ./... | |
| build-and-test-freebsd: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Build and test on FreeBSD ${{ env.FREEBSD_RELEASE }} | |
| uses: vmactions/freebsd-vm@f0552d3b69211736abd97f02ff3d4674c56b73b1 # v1.5.5 | |
| with: | |
| release: ${{ env.FREEBSD_RELEASE }} | |
| envs: 'GO_VERSION' | |
| usesh: true | |
| prepare: | | |
| set -e | |
| pkg install -y curl | |
| archive=/tmp/go.tar.gz | |
| curl -fsSL "https://go.dev/dl/go${GO_VERSION}.freebsd-amd64.tar.gz" -o "$archive" | |
| rm -rf /usr/local/go | |
| mkdir -p /usr/local | |
| (cd /usr/local && gzip -dc "$archive" | tar -xf -) | |
| run: | | |
| set -e | |
| export PATH="/usr/local/go/bin:$PATH" | |
| go version | |
| go generate | |
| go build ./... | |
| go test -v ./... | |
| - name: Check diff in generated files | |
| run: | |
| git diff --exit-code | |
| build-and-test-netbsd: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Build and test on NetBSD ${{ env.NETBSD_RELEASE }} | |
| uses: vmactions/netbsd-vm@00081e82b14bc40114eb97f32b4455306828516b # v1.4.6 | |
| with: | |
| release: ${{ env.NETBSD_RELEASE }} | |
| envs: 'GO_VERSION' | |
| usesh: true | |
| prepare: | | |
| set -e | |
| /usr/sbin/pkg_add -u curl | |
| archive=/tmp/go.tar.gz | |
| curl -fsSL "https://go.dev/dl/go${GO_VERSION}.netbsd-amd64.tar.gz" -o "$archive" | |
| rm -rf /usr/local/go | |
| mkdir -p /usr/local | |
| (cd /usr/local && gzip -dc "$archive" | tar -xf -) | |
| run: | | |
| set -e | |
| export PATH="/usr/local/go/bin:$PATH" | |
| go version | |
| go test -v ./... | |
| go build ./... | |
| go test -v ./... | |
| go generate | |
| - name: Check diff in generated files | |
| run: | |
| git diff --exit-code | |
| build-and-test-openbsd: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Build and test on OpenBSD ${{ env.OPENBSD_RELEASE }} | |
| uses: vmactions/openbsd-vm@c941015845c0f0c429676840963dc63b226d4f69 # v1.4.5 | |
| with: | |
| release: ${{ env.OPENBSD_RELEASE }} | |
| envs: 'GO_VERSION' | |
| usesh: true | |
| prepare: | | |
| set -e | |
| archive=/tmp/go.tar.gz | |
| ftp -o "$archive" "https://go.dev/dl/go${GO_VERSION}.openbsd-amd64.tar.gz" | |
| rm -rf /usr/local/go | |
| mkdir -p /usr/local | |
| (cd /usr/local && gzip -dc "$archive" | tar -xf -) | |
| run: | | |
| set -e | |
| export PATH="/usr/local/go/bin:$PATH" | |
| go version | |
| go build ./... | |
| go test -v ./... | |
| go generate | |
| - name: Check diff in generated files | |
| run: | |
| git diff --exit-code | |
| build-and-test-dragonflybsd: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Build and test on DragonFlyBSD ${{ env.DRAGONFLYBSD_RELEASE }} | |
| uses: vmactions/dragonflybsd-vm@bc8ccbaa091ce3624c93f2dc328ae48129b07580 # v1.3.1 | |
| with: | |
| release: ${{ env.DRAGONFLYBSD_RELEASE }} | |
| envs: 'GO_VERSION' | |
| usesh: true | |
| prepare: | | |
| set -e | |
| pkg install -y curl | |
| archive=/tmp/go.tar.gz | |
| curl -fsSL "https://go.dev/dl/go${GO_VERSION}.dragonfly-amd64.tar.gz" -o "$archive" | |
| rm -rf /usr/local/go | |
| mkdir -p /usr/local | |
| (cd /usr/local && gzip -dc "$archive" | tar -xf -) | |
| run: | | |
| set -e | |
| export PATH="/usr/local/go/bin:$PATH" | |
| go version | |
| go build ./... | |
| go test -v ./... | |
| go generate | |
| - name: Check diff in generated files | |
| run: | |
| git diff --exit-code | |
| build-and-test-solaris: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Build and test on Solaris ${{ env.SOLARIS_RELEASE }} | |
| uses: vmactions/solaris-vm@315163f088b66e55bbcc45928bd224d4973b2312 # v1.3.8 | |
| with: | |
| release: ${{ env.SOLARIS_RELEASE }} | |
| envs: 'GO_VERSION' | |
| usesh: true | |
| prepare: | | |
| set -e | |
| archive=/tmp/go.tar.gz | |
| wget -q -O "$archive" "https://go.dev/dl/go${GO_VERSION}.solaris-amd64.tar.gz" | |
| rm -rf /usr/local/go | |
| mkdir -p /usr/local | |
| (cd /usr/local && gzip -dc "$archive" | gtar -xf -) | |
| run: | | |
| set -e | |
| export PATH="/usr/local/go/bin:$PATH" | |
| go version | |
| go build ./... | |
| go test -v ./... | |
| go generate | |
| - name: Check diff in generated files | |
| run: | |
| git diff --exit-code |