Skip to content

Commit d2852e3

Browse files
committed
add freebsd github actions runner and goos=freebsd
1 parent e3d18f8 commit d2852e3

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/workflows/coder-freebsd.yaml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: coder (FreeBSD)
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
actions: none
14+
checks: none
15+
contents: read
16+
deployments: none
17+
issues: none
18+
packages: none
19+
pull-requests: none
20+
repository-projects: none
21+
security-events: none
22+
statuses: none
23+
24+
# Cancel in-progress runs for pull requests when developers push
25+
# additional changes
26+
# concurrency:
27+
# group: ${{ github.workflow }}-${{ github.ref }}
28+
# cancel-in-progress: ${{ github.event_name == 'pull_request' }}
29+
30+
jobs:
31+
test-go:
32+
name: "test/go"
33+
runs-on: macos-12
34+
timeout-minutes: 120
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: test/go (FreeBSD)
38+
id: test
39+
uses: vmactions/freebsd-vm@v0
40+
with:
41+
envs: 'MYTOKEN MYTOKEN2'
42+
usesh: true
43+
prepare: |
44+
pkg install -y terraform go119
45+
46+
run: |
47+
pwd
48+
whoami
49+
env
50+
freebsd-version
51+
52+
ln -s /usr/local/bin/go119 /usr/local/bin/go
53+
export PATH="${PATH}:/root/go/bin"
54+
55+
go version
56+
terraform -version
57+
58+
go install gotest.tools/gotestsum@latest
59+
gotestsum --version
60+
61+
export COVERAGE_FLAGS='-covermode=atomic -coverprofile="gotests.coverage" -coverpkg=./...'
62+
gotestsum --junitfile="gotests.xml" --jsonfile="gotestsum.json" --packages="./..." --debug -- -parallel=8 -timeout=3m -short -failfast $COVERAGE_FLAGS

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ SHELL_SRC_FILES = $(shell find . -not \( -path './.git/*' -o -path './build/*' -
5353
OS_ARCHES := \
5454
linux_amd64 linux_arm64 linux_armv7 \
5555
darwin_amd64 darwin_arm64 \
56+
freebsd_amd64 freebsd_arm64 \
5657
windows_amd64.exe windows_arm64.exe
5758

5859
# Archive formats and their corresponding ${OS}_${ARCH} combos.

0 commit comments

Comments
 (0)