Skip to content

Commit

Permalink
ci: add freebsd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuasing committed Oct 15, 2024
1 parent 3f90032 commit 3ee4ffc
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/freebsd.yml
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

0 comments on commit 3ee4ffc

Please sign in to comment.