Skip to content

Commit

Permalink
add FreeBSD/qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Jan 15, 2024
1 parent 6dc6cc0 commit d431a96
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/ci-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,52 @@ jobs:
# When using rsync, you can define copyback: false to not copy files back from the VM in to the host.
copyback: false
prepare: |
pkg install -y cmake qt5-buildtools qt5-charts qt5-concurrent qt5-core qt5-declarative qt5-gui qt5-location qt5-multimedia qt5-network qt5-opengl qt5-qmake qt5-script qt5-serialport qt5-widgets qt5-testlib qt5-linguisttools qxlsx exiv2 nlopt perl5 xorg-vfbserver gettext
pkg install -y cmake qt5-buildtools qt5-charts qt5-concurrent qt5-core qt5-declarative qt5-gui qt5-location qt5-multimedia qt5-network qt5-opengl qt5-qmake qt5-script qt5-serialport qt5-widgets qt5-testlib qt5-linguisttools qt5-webengine qxlsx exiv2 nlopt perl5 xorg-vfbserver gettext
run: |
export DISPLAY=:0
mkdir builds
cd builds
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=On -DENABLE_SHOWMYSKY=Off -DENABLE_QTWEBENGINE=Off "${{ github.workspace }}"
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=On -DENABLE_SHOWMYSKY=Off "${{ github.workspace }}"
make -j3
Xvfb :0 -ac -screen 0 1024x768x24+32 >/dev/null 2>&1 &
sleep 3
ctest --output-on-failure
local xvfb_pids=`ps aux | grep Xvfb | grep -v grep | awk '{print $2}'`
xvfb_pids=`ps aux | grep Xvfb | grep -v grep | awk '{print $2}'`
if [ "$xvfb_pids" != "" ]; then
kill $xvfb_pids
fi
ci-freebsd-qt6:
name: "FreeBSD (x86_64; qt6)"
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.actor, 'transifex')"

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build and run unit tests in FreeBSD
uses: vmactions/freebsd-vm@v1
id: freebsd-qt6
with:
# Use sh shell
usesh: true
# When using rsync, you can define copyback: false to not copy files back from the VM in to the host.
copyback: false
prepare: |
pkg install -y cmake qt6-buildtools qt6-charts qt6-concurrent qt6-core qt6-declarative qt6-gui qt6-location qt6-multimedia qt6-network qt6-opengl qt6-qmake qt6-serialport qt6-widgets qt6-testlib qt6-linguisttools qt6-webengine qxlsx exiv2 nlopt perl5 xorg-vfbserver gettext
run: |
export DISPLAY=:0
mkdir builds
cd builds
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=On -DENABLE_SHOWMYSKY=Off "${{ github.workspace }}"
make -j3
Xvfb :0 -ac -screen 0 1024x768x24+32 >/dev/null 2>&1 &
sleep 3
ctest --output-on-failure
xvfb_pids=`ps aux | grep Xvfb | grep -v grep | awk '{print $2}'`
if [ "$xvfb_pids" != "" ]; then
kill $xvfb_pids
fi

0 comments on commit d431a96

Please sign in to comment.