1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00
Files
OpenRCT2/.github/workflows/ci.yml
2019-10-28 20:53:45 +01:00

36 lines
1.3 KiB
YAML

name: CI
on: [push]
jobs:
build-appimage:
name: Build AppImage
runs-on: ubuntu-latest
container:
image: openrct2/openrct2:ubuntu_amd64
steps:
- uses: actions/checkout@v1
- name: Get pre-reqs
run: |
git clone https://github.com/discordapp/discord-rpc -b v3.4.0
git clone https://github.com/janisozaur/rapidjson discord-rpc/thirdparty/rapidjson -b patch-1
mkdir bin && cd bin
apt-get update
apt-get install -y wget libcairo2
wget https://github.com/TheAssassin/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
chmod +x linuxdeploy*.AppImage
- name: Build OpenRCT2
working-directory: bin
run: |
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
ninja -v
DESTDIR=AppDir ninja install
- name: Build AppImage
working-directory: bin
run: |
./linuxdeploy*.AppImage --appimage-extract-and-run --appdir AppDir/ --output appimage --desktop-file AppDir/usr/share/applications/openrct2.desktop
mkdir artifacts
mv OpenRCT2*.AppImage artifacts
- uses: actions/upload-artifact@master
with:
name: OpenRCT2-AppImage
path: bin/artifacts