on: pull_request: types: [ assigned, opened, synchronize, reopened ] jobs: build-test: runs-on: x86_64 container: image: onlyoffice/documentserver:8.1.1.2 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 python3 python-is-python3 curl lsb-release curl -sL https://deb.nodesource.com/setup_16.x | bash - apt-get update apt-get install -y nodejs npm install -g pkg grunt grunt-cli - name: Getting patches uses: actions/checkout@v4 - name: Cloning document server source run: git clone https://github.com/ONLYOFFICE/DocumentServer --recursive -b v$pkgver onlyoffice-document-server - name: Cloning build tools 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 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/*