Merge pull request #2983 from alebastr/ci-freebsd-on-ubuntu

ci: move FreeBSD to ubuntu runners
pull/2986/head
Alexis Rouillard 2024-03-01 05:41:40 +01:00 committed by GitHub
commit bdff489850
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 5 deletions

View File

@ -8,19 +8,22 @@ concurrency:
jobs: jobs:
clang: clang:
# Run actions in a FreeBSD VM on the macos-12 runner # Run actions in a FreeBSD VM on the ubuntu runner
# https://github.com/actions/runner/issues/385 - for FreeBSD runner support # https://github.com/actions/runner/issues/385 - for FreeBSD runner support
# https://github.com/actions/virtual-environments/issues/4060 - for lack of VirtualBox on MacOS 11 runners runs-on: ubuntu-latest
runs-on: macos-12
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Test in FreeBSD VM - name: Test in FreeBSD VM
uses: cross-platform-actions/action@v0.21.1 uses: cross-platform-actions/action@v0.23.0
timeout-minutes: 180 timeout-minutes: 180
env:
CPPFLAGS: '-isystem/usr/local/include'
LDFLAGS: '-L/usr/local/lib'
with: with:
operating_system: freebsd operating_system: freebsd
version: "13.2" version: "13.2"
environment_variables: CPPFLAGS=-isystem/usr/local/include LDFLAGS=-L/usr/local/lib environment_variables: CPPFLAGS LDFLAGS
sync_files: runner-to-vm
run: | run: |
sudo sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf sudo sed -i '' 's/quarterly/latest/' /etc/pkg/FreeBSD.conf
sudo pkg install -y git # subprojects/date sudo pkg install -y git # subprojects/date