-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f081521
commit 84ce6e5
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build (NetBSD) | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build_netbsd: | ||
name: Build on ${{ matrix.box }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
box: | ||
- generic/netbsd9 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Provision VM | ||
uses: hummeltech/[email protected] | ||
with: | ||
box: ${{ matrix.box }} | ||
save_box_to_cache: true | ||
provision-commands: >- | ||
pkgin update; | ||
pkgin -y upgrade; | ||
pkgin -y install bash rsync; | ||
echo 'AcceptEnv *' >> /etc/ssh/sshd_config; | ||
service sshd restart; | ||
mkdir -p ${{ github.workspace }}; | ||
chown vagrant:vagrant ${{ github.workspace }}; | ||
mkdir -p ${{ runner.temp }}; | ||
chown vagrant:vagrant ${{ runner.temp }}; | ||
- name: Install packages | ||
run: sudo pkgin -y install clang cmake python311 | ||
|
||
- name: Generate build system | ||
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="" -DLIBCPUID_ENABLE_TESTS=ON | ||
|
||
- name: Build | ||
run: cmake --build build | ||
|
||
- name: Run cpuid_tool | ||
run: ./build/cpuid_tool/cpuid_tool --save=- --all | ||
|
||
- name: Run tests | ||
run: | | ||
make -C build consistency | ||
make -C build test-old | ||
- name: Install | ||
run: cmake --install build | ||
env: | ||
DESTDIR: ${{ github.workspace }}/installdir |
This file contains 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