onlyoffice-document-server/.forgejo/workflows/test-build.yaml
Antoine Martin 389c9d5535
Some checks failed
/ build-test (pull_request) Failing after 46s
install nodejs16
2024-08-23 16:51:08 -04:00

51 lines
2.3 KiB
YAML

on:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
jobs:
build-test:
runs-on: x86_64
container:
image: ubuntu:16.04
env:
pkgver: 8.1.1
buildno: 39
build_deps: git make g++ bzip2 sudo patch python
steps:
- name: Environment setup
run: |
apt-get update
apt-get install -y $build_deps
curl -JO https://deb.nodesource.com/gpgkey/nodesource.gpg.key
gpg --dearmor -o /usr/share/keyrings/nodesource-archive-keyring.gpg nodesource.gpg.key
echo "deb [signed-by=/usr/share/keyrings/nodesource-archive-keyring.gpg] https://deb.nodesource.com/node_16.x $(lsb_release -c -s) main" > /etc/apt/sources.list.d/nodesource.list
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/*