try different (patchable) approach

This commit is contained in:
Antoine Martin 2024-08-23 16:19:58 -04:00
parent 3911d3b318
commit 3e1151d01b
Signed by: ayakael
GPG key ID: D62A472A4AA7D541

View file

@ -7,15 +7,41 @@ jobs:
runs-on: x86_64
container:
image: ubuntu:16.04
env:
pkgver: 8.1.1
buildno: 39
steps:
- name: Environment setup
run: |
apt-get update
apt-get install -y python git sudo
- name: Getting patches
uses: actions/checkout@v4
- name: Cloning document server source
run: git clone https://github.com/ONLYOFFICE/DocumentServer -b v$pkgver onlyoffice-document-server
- name: Cloning build tools
run: git clone https://github.com/ONLYOFFICE/build_tools.git -b v8.1.1.39
run: git clone https://github.com/ONLYOFFICE/build_tools.git -b v$pkgver.$buildno onlyoffice-document-server/build_tools
- name: Cloning document server integration
run: git clone https://github.com/ONLYOFFICE/document-server-integration -b v$pkgver.$buildno onlyoffice-document-server/document-server-integration
- name: Cloning document templates
run: git clone https://github.com/ONLYOFFICE/document-templates -b v$pkgver.$buildno onlyoffice-document-server/document-templates
- name: Cloning onlyoffice io
run: git clone https://github.com/ONLYOFFICE/onlyoffice.github.io onlyoffice-document-server/onlyoffice.github.io
- name: Applying patches
run: |
patch -p1 -d onlyoffice-document-server -i web-apps.patch
patch -p1 -d onlyoffice-document-server -i server.patch
- name: Building onlyoffice
run: |
cd build_tools/tools/linux
./automate.py server
cd onlyoffice-document-server/build_tools
./configure.py \
--update 0 \
--module "server"
./make.py
- name: Package upload
uses: forgejo/upload-artifact@v3
with:
name: documentserver
path: ./out/linux_64/onlyoffice/documentserver/*