onlyoffice-document-server/.forgejo/workflows/test-build.yaml

55 lines
2.3 KiB
YAML
Raw Normal View History

2024-08-23 15:47:35 -04:00
on:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
jobs:
build-test:
runs-on: x86_64
container:
2024-08-24 10:33:52 -04:00
image: ubuntu:22.04
2024-08-23 16:19:58 -04:00
env:
2024-08-24 10:14:50 -04:00
pkgver: 8.1.1
buildno: 39
2024-08-23 15:47:35 -04:00
steps:
- name: Environment setup
2024-08-23 15:59:20 -04:00
run: |
2024-08-23 17:45:27 -04:00
cat /etc/os-release
2024-08-23 15:59:20 -04:00
apt-get update
2024-08-24 10:14:50 -04:00
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 -
2024-08-23 17:32:54 -04:00
apt-get install -y nodejs
2024-08-23 16:51:08 -04:00
npm install -g pkg grunt grunt-cli
2024-08-24 10:45:44 -04:00
- name: Getting patches
uses: actions/checkout@v4
2024-08-24 10:38:08 -04:00
- name: Cloning source
run: |
2024-08-24 11:12:29 -04:00
git clone https://github.com/ONLYOFFICE/DocumentServer --recursive -b v$pkgver build
git clone https://github.com/ONLYOFFICE/build_tools.git -b v$pkgver.$buildno build/build_tools
git clone https://github.com/ONLYOFFICE/document-server-integration -b v$pkgver.$buildno build/document-server-integration
git clone https://github.com/ONLYOFFICE/document-templates -b v$pkgver.$buildno build/document-templates
git clone https://github.com/ONLYOFFICE/onlyoffice.github.io build/onlyoffice.github.io
2024-08-23 16:19:58 -04:00
- name: Applying patches
run: |
2024-08-24 11:12:29 -04:00
git -C build/server apply -v --ignore-space-change --ignore-whitespace $GITHUB_WORKSPACE/server.patch
git -C build/web-apps apply -v --ignore-space-change --ignore-whitespace $GITHUB_WORKSPACE/web-apps.patch
2024-08-24 10:38:08 -04:00
- name: Development setup
2024-08-23 15:57:28 -04:00
run: |
2024-08-24 11:12:29 -04:00
mkdir -p build/build_tools/system_qt/gcc_64
ln -s /usr/lib/x86_64-linux-gnu build/build_tools/system_qt/gcc_64/lib
ln -s /usr/lib/x86_64-linux-gnu/qt5/bin build/build_tools/system_qt/gcc_64/bin
ln -s /usr/lib/x86_64-linux-gnu/qt5/plugins build/build_tools/system_qt/gcc_64/plugins
cd build/build_tools/tools/linux
2024-08-24 10:33:52 -04:00
python2 ./deps.py
2024-08-24 10:38:08 -04:00
- name: Onlyoffice server build
2024-08-24 10:40:22 -04:00
run: |
2024-08-24 11:12:29 -04:00
cd build/build_tools
2024-08-24 10:14:50 -04:00
python2 ./configure.py --update 0 --module "server" --qt-dir $(pwd)/system_qt
python2 ./make.py
2024-08-23 16:19:58 -04:00
- name: Package upload
uses: forgejo/upload-artifact@v3
with:
name: documentserver
2024-08-24 11:12:29 -04:00
path: build/build_tools/out/linux_64/onlyoffice/documentserver/*
2024-08-23 16:19:58 -04:00
2024-08-23 15:57:28 -04:00