CI: change FreeBSD CI runner to cross-platform-actions.

main
Ozkan Sezer 2023-10-26 01:03:40 +03:00
parent 23ceae94c9
commit a9aa15c792
1 changed files with 9 additions and 11 deletions

View File

@ -1,4 +1,4 @@
name: Build (VM Actions) name: Build (C/P Actions)
on: [push, pull_request] on: [push, pull_request]
@ -8,18 +8,19 @@ concurrency:
jobs: jobs:
freebsd: freebsd:
runs-on: macos-12 runs-on: ubuntu-latest
name: FreeBSD name: FreeBSD
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build - name: Build
uses: vmactions/freebsd-vm@v0 uses: cross-platform-actions/action@v0.19.1
with: with:
mem: 8192 operating_system: freebsd
usesh: true version: '13.2'
prepare: | run: |
pkg install -y \ sudo pkg update
sudo pkg install -y \
cmake \ cmake \
ninja \ ninja \
pkgconf \ pkgconf \
@ -46,11 +47,8 @@ jobs:
dbus \ dbus \
zh-fcitx \ zh-fcitx \
ibus \ ibus \
libsamplerate \
libudev-devd libudev-devd
cmake -S . -B build -GNinja \
run: |
cmake -S . -B build -GNinja \
-Wdeprecated -Wdev -Werror \ -Wdeprecated -Wdev -Werror \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DSDL_HIDAPI_LIBUSB=OFF \ -DSDL_HIDAPI_LIBUSB=OFF \