51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
YAML
name: Build server
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/server.yml'
|
|
- 'app/**'
|
|
- 'conf/**'
|
|
- 'modules/**'
|
|
- 'project/**'
|
|
- 'translation/**'
|
|
- 'build.sbt'
|
|
- 'lila'
|
|
- 'conf/application.conf.default'
|
|
- '.sbtopts.default'
|
|
branches-ignore:
|
|
- 'l10n_master'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/server.yml'
|
|
- 'app/**'
|
|
- 'conf/**'
|
|
- 'modules/**'
|
|
- 'project/**'
|
|
- 'translation/source/**'
|
|
- 'build.sbt'
|
|
- 'lila'
|
|
- 'conf/application.conf.default'
|
|
- '.sbtopts.default'
|
|
|
|
jobs:
|
|
openjdk13:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/cache@v1
|
|
with:
|
|
path: ~/.sbt
|
|
key: ${{ runner.os }}-openjdk13-20200416-sbt
|
|
- uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 13.0.2
|
|
- run: TZ=UTC git log -1 --date=iso-strict-local --pretty='format:app.version.commit = "%h"%napp.version.date = "%ad"%napp.version.message = """%s"""%n' | tee conf/version.conf
|
|
- run: ./lila -Depoll=true "test;stage"
|
|
- run: cp LICENSE COPYING.md README.md target/universal/stage && git log -n 1 --pretty=oneline > target/universal/stage/commit.txt
|
|
- run: cd target/universal/stage && tar -cvpJf ../../../lila-3.0.tar.xz . && cd -
|
|
- uses: actions/upload-artifact@v1
|
|
with:
|
|
name: lila-server
|
|
path: lila-3.0.tar.xz
|