Skip to content

Commit c700987

Browse files
committed
GH Actions: run NetBSD via cross-platform-actions/action
This one has the `pkgin` command preinstalled (see https://github.com/cross-platform-actions/netbsd-builder/blob/c8e88e1f1a6f892f564f61f07695a4d588bb2e46/readme.md?plain=1#L23), which greatly simplifies package installation.
1 parent a54035a commit c700987

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,20 +167,26 @@ jobs:
167167
steps:
168168
- uses: actions/checkout@v5
169169
- name: Run in NetBSD
170-
uses: vmactions/netbsd-vm@v1
170+
uses: cross-platform-actions/action@v0.29.0
171171
with:
172-
release: "10.1"
173-
usesh: true
174-
prepare: |
175-
/usr/sbin/pkg_add cmake googletest
176-
172+
operating_system: netbsd
173+
version: '10.1'
177174
run: |
175+
set -x
178176
echo '#### System information'
177+
uname -a
178+
echo "$SHELL"
179+
pwd
180+
ls -la
179181
whoami
180-
env
182+
env | sort
181183
c++ --version
182184
gcc --version
183185
186+
sudo pkgin update
187+
sudo pkgin -y install cmake
188+
sudo pkgin -y install googletest
189+
184190
echo '#### Building'
185191
.build/build -DCMAKE_CXX_STANDARD=11 -DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF
186192

0 commit comments

Comments
 (0)