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 - run: echo "autoformat=false" > ~/.scalariform.conf - name: Work around OverlappingFileLockException run: mkdir -p ~/.sbt && sudo mount -t tmpfs -o size=1536m tmpfs ~/.sbt && mount - uses: actions/cache@v1 with: path: ~/.ivy2/cache key: ${{ runner.os }}-openjdk13-20200404-ivy2 - uses: olafurpg/setup-scala@49fc8c734ef6916b4e1da8ba8d81bb26a2b46a06 # v7 with: java-version: openjdk@1.13.0-2 - run: echo "app.version = \"\"\"$(git log -1 --pretty='format:%h / %ar / %s')\"\"\"" > conf/version.conf - run: ./lila -Depoll=true "test;dist" - run: unzip target/universal/lila-3.0.zip - run: cp LICENSE COPYING.md README.md lila-3.0 && git log -n 1 --pretty=oneline > lila-3.0/commit.txt - run: du -d2 -h ~ - uses: actions/upload-artifact@v1 with: name: lila-server path: lila-3.0