onlyoffice-document-server/.forgejo/workflows/test-build.yaml
Antoine Martin 081e2c2c21
Some checks failed
/ build-test (pull_request) Failing after 2m35s
downgrade node_14
2024-08-23 18:03:54 -04:00

50 lines
2.1 KiB
YAML

on:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
jobs:
build-test:
runs-on: x86_64
container:
image: onlyoffice/documentserver:8.0.1.1
env:
pkgver: 8.0.1
buildno: 60
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_14.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/web-apps -i $GITHUB_WORKSPACE/web-apps.patch
patch -p1 -d onlyoffice-document-server/server -i $GITHUB_WORKSPACE/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/*