-
Notifications
You must be signed in to change notification settings - Fork 265
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
3f90032
commit 3ee4ffc
Showing
1 changed file
with
42 additions
and
0 deletions.
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,42 @@ | ||
# GitHub Actions workflow to run tests on a FreeBSD VM. | ||
name: "FreeBSD" | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 0 * * *" # At 00:00 daily. | ||
|
||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
name: "FreeBSD" | ||
runs-on: ubuntu-latest | ||
if: ${{ github.repository_owner == 'libressl' || github.event_name != 'schedule' }} | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: "Checkout repository" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Setup" | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y automake autoconf libtool | ||
./autogen.sh | ||
- name: "Build on VM" | ||
uses: vmactions/freebsd-vm@v1 | ||
with: | ||
prepare: | | ||
pkg install -y autoconf automake libtool | ||
pkg install -y cmake ninja | ||
run: | | ||
./configure | ||
make -j2 check || (cat tests/test-suite.log && exit 1) | ||
cmake -G Ninja -B build | ||
ninja -C build | ||
ninja -C build test |