forked from MirrorStudio-devTeam/panda-qt5-plugin
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.cirrus.yml
24 lines (22 loc) · 1.54 KB
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
freebsd_instance:
image: freebsd-12-4-release-amd64
env:
CIRRUS_CLONE_DEPTH: 1
GITHUB_TOKEN: ENCRYPTED[dd1c4f4c9eb3ebb269f7adc042ff737beeb0d6a26c2477152bcfef41098f59730b8737eb1bf812b95b9749a4d8fb2787]
task:
# This name gets reported as a build status in GitHub
name: freebsd-12-4-release-amd64
stateful: false
setup_script:
- sudo sed -i '' 's/quarterly/release_4/g' /etc/pkg/FreeBSD.conf
- pkg install -y git-lite curl wget zip cmake pkgconf libfm qt5-core qt5-x11extras qt5-widgets qt5-qmake qt5-buildtools qt5-linguisttools qt5-multimedia kf5-extra-cmake-modules libqtxdg libxcb libdbusmenu-qt5 kf5-kwindowsystem
test_script:
- git submodule update --init --recursive
- mkdir build ; cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
- make -j$(sysctl -n hw.ncpu)
- make DESTDIR=QtPlugin -j$(sysctl -n hw.ncpu) install
- find QtPlugin/
- zip --symlinks -r QtPlugin_FreeBSD.zip QtPlugin/
- case "$CIRRUS_BRANCH" in *pull/*) echo "Skipping since it's a pull request" ;; * ) wget https://github.com/tcnksm/ghr/files/5247714/ghr.zip ; unzip ghr.zip ; rm ghr.zip ; fetch https://github.com/probonopd/continuous-release-manager/releases/download/continuous/continuous-release-manager-freebsd && chmod +x continuous-release-manager-freebsd && ./continuous-release-manager-freebsd && ./ghr -replace -t "${GITHUB_TOKEN}" -u "${CIRRUS_REPO_OWNER}" -r "${CIRRUS_REPO_NAME}" -c "${CIRRUS_CHANGE_IN_REPO}" continuous "${CIRRUS_WORKING_DIR}"/build/*zip ; esac
only_if: $CIRRUS_TAG != 'continuous'