54 lines
2.3 KiB
YAML
54 lines
2.3 KiB
YAML
on:
|
|
pull_request:
|
|
types: [ assigned, opened, synchronize, reopened ]
|
|
|
|
jobs:
|
|
build-test:
|
|
runs-on: x86_64
|
|
container:
|
|
image: ubuntu:22.04
|
|
env:
|
|
pkgver: 8.1.1
|
|
buildno: 39
|
|
steps:
|
|
- name: Environment setup
|
|
run: |
|
|
cat /etc/os-release
|
|
apt-get update
|
|
apt-get install -y git make g++ bzip2 sudo patch python2 curl lsb-release p7zip-full qtbase5-dev
|
|
curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
|
apt-get install -y nodejs
|
|
npm install -g pkg grunt grunt-cli
|
|
- name: Cloning source
|
|
run: |
|
|
git clone https://github.com/ONLYOFFICE/DocumentServer --recursive -b v$pkgver onlyoffice-document-server
|
|
git clone https://github.com/ONLYOFFICE/build_tools.git -b v$pkgver.$buildno onlyoffice-document-server/build_tools
|
|
git clone https://github.com/ONLYOFFICE/document-server-integration -b v$pkgver.$buildno onlyoffice-document-server/document-server-integration
|
|
git clone https://github.com/ONLYOFFICE/document-templates -b v$pkgver.$buildno onlyoffice-document-server/document-templates
|
|
git clone https://github.com/ONLYOFFICE/onlyoffice.github.io onlyoffice-document-server/onlyoffice.github.io
|
|
- name: Getting patches
|
|
uses: actions/checkout@v4
|
|
- name: Applying patches
|
|
run: |
|
|
git -C onlyoffice-document-server/server apply -v --ignore-space-change --ignore-whitespace $GITHUB_WORKSPACE/server.patch
|
|
git -C onlyoffice-document-server/web-apps apply -v --ignore-space-change --ignore-whitespace $GITHUB_WORKSPACE/web-apps.patch
|
|
- name: Development setup
|
|
run: |
|
|
cd onlyoffice-document-server/build_tools
|
|
mkdir -p ./system_qt/gcc_64
|
|
ln -s /usr/lib/x86_64-linux-gnu ./system_qt/gcc_64/lib
|
|
ln -s /usr/lib/x86_64-linux-gnu/qt5/bin ./system_qt/gcc_64/bin
|
|
ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins ./system_qt/gcc_64/plugins
|
|
cd tools/linux
|
|
python2 ./deps.py
|
|
cd ../../
|
|
- name: Onlyoffice server build
|
|
python2 ./configure.py --update 0 --module "server" --qt-dir $(pwd)/system_qt
|
|
python2 ./make.py
|
|
- name: Package upload
|
|
uses: forgejo/upload-artifact@v3
|
|
with:
|
|
name: documentserver
|
|
path: ./out/linux_64/onlyoffice/documentserver/*
|
|
|
|
|