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

51 lines
2 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-23 15:55:10 -04:00
image: ubuntu:16.04
2024-08-23 16:19:58 -04:00
env:
pkgver: 8.1.1
buildno: 39
2024-08-23 16:53:40 -04:00
build_deps: git make g++ bzip2 sudo patch python curl lsb-release
2024-08-23 15:47:35 -04:00
steps:
- name: Environment setup
2024-08-23 15:59:20 -04:00
run: |
apt-get update
2024-08-23 16:51:08 -04:00
apt-get install -y $build_deps
2024-08-23 17:32:54 -04:00
curl -sL https://deb.nodesource.com/setup_16.x | bash -
2024-08-23 16:54:53 -04:00
apt-get update
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-23 16:19:58 -04:00
- name: Getting patches
uses: actions/checkout@v4
- name: Cloning document server source
2024-08-23 16:23:18 -04:00
run: git clone https://github.com/ONLYOFFICE/DocumentServer --recursive -b v$pkgver onlyoffice-document-server
2024-08-23 15:57:28 -04:00
- name: Cloning build tools
2024-08-23 16:19:58 -04:00
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
2024-08-23 15:57:28 -04:00
- name: Building onlyoffice
run: |
2024-08-23 16:19:58 -04:00
cd onlyoffice-document-server/build_tools
2024-08-23 16:25:22 -04:00
./configure.py --update 0 --module "server"
2024-08-23 16:19:58 -04:00
./make.py
- name: Package upload
uses: forgejo/upload-artifact@v3
with:
name: documentserver
path: ./out/linux_64/onlyoffice/documentserver/*
2024-08-23 15:57:28 -04:00