Skip to content

Commit 728dbc8

Browse files
committed
CI: add FreeBSD and NetBSD VM workflows.
1 parent 443248b commit 728dbc8

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

.github/workflows/vmactions.yaml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: VM
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
12+
13+
env:
14+
CARGO_TERM_COLOR: 'always'
15+
NGINX_SOURCE_DIR: nginx
16+
TEST_NGINX_GLOBALS: 'user root nobody;'
17+
18+
jobs:
19+
freebsd:
20+
name: FreeBSD
21+
runs-on: ubuntu-latest
22+
env:
23+
BUILDREQUIRES: >-
24+
git
25+
go
26+
llvm
27+
p5-Digest-SHA
28+
p5-IO-Socket-INET6
29+
p5-IO-Socket-SSL
30+
p5-JSON-PP
31+
p5-TimeDate
32+
pcre2
33+
pkgconf
34+
rust
35+
36+
steps:
37+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
38+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
39+
with:
40+
ref: ${{ matrix.nginx-ref }}
41+
repository: 'nginx/nginx'
42+
path: 'nginx'
43+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
44+
with:
45+
repository: 'nginx/nginx-tests'
46+
path: 'nginx/tests'
47+
48+
- uses: vmactions/freebsd-vm@783ae15c0393f8a2582a139f76cc55f2d887b4a6 # v1.2.6
49+
with:
50+
copyback: false
51+
envs: 'CARGO_TERM_COLOR NGINX_SOURCE_DIR TEST_NGINX_GLOBALS'
52+
prepare: |
53+
pkg install -y ${{ env.BUILDREQUIRES }}
54+
run: |
55+
TEST_NGINX_PEBBLE_BINARY=$(perl build/get-pebble.pl)
56+
export TEST_NGINX_PEBBLE_BINARY
57+
make
58+
59+
netbsd:
60+
name: NetBSD
61+
runs-on: ubuntu-latest
62+
env:
63+
GO: go124
64+
BUILDREQUIRES: >-
65+
clang
66+
git
67+
go124
68+
p5-IO-Socket-INET6
69+
p5-IO-Socket-SSL
70+
p5-TimeDate
71+
pcre2
72+
pkgconf
73+
rust
74+
75+
steps:
76+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
77+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
78+
with:
79+
ref: ${{ matrix.nginx-ref }}
80+
repository: 'nginx/nginx'
81+
path: 'nginx'
82+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
83+
with:
84+
repository: 'nginx/nginx-tests'
85+
path: 'nginx/tests'
86+
87+
- uses: vmactions/netbsd-vm@495b430eb9f48e0c42f3e0e23294ba00d2df22a7 # v1.2.1
88+
with:
89+
copyback: false
90+
envs: 'CARGO_TERM_COLOR NGINX_SOURCE_DIR TEST_NGINX_GLOBALS GO'
91+
prepare: |
92+
/usr/sbin/pkg_add ${{ env.BUILDREQUIRES }}
93+
run: |
94+
TEST_NGINX_PEBBLE_BINARY=$(perl build/get-pebble.pl)
95+
export TEST_NGINX_PEBBLE_BINARY
96+
make

0 commit comments

Comments
 (0)