-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (61 loc) · 1.97 KB
/
distro.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Make Linux releases
on:
workflow_dispatch:
inputs:
sbt_ver:
description: the version of sbt to release
required: true
default: 1.4.x
dist_patchver:
description: patch version if needed
required: true
default: 0
jobs:
linux-release:
strategy:
matrix:
include:
- os: ubuntu-latest
java: 8
distribution: temurin
runs-on: ${{ matrix.os }}
env:
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M
SBT_VER: ${{ github.event.inputs.sbt_ver }}
DIST_PATCHVER: ${{ github.event.inputs.dist_patchver }}
steps:
- name: Checkout sbt/sbt-dist
uses: actions/checkout@v2
- name: Checkout sbt/sbt
uses: actions/checkout@v2
with:
repository: sbt/sbt
ref: v${{ github.event.inputs.sbt_ver }}
path: sbt
- name: Setup JDK
uses: actions/setup-java@v2
with:
distribution: "${{ matrix.distribution }}"
java-version: "${{ matrix.java }}"
- name: Coursier cache
uses: coursier/cache-action@v6
- name: Cache sbt
uses: actions/[email protected]
with:
path: ~/.sbt
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
- name: Build
shell: bash
run: |
mode=linuxrelease bin/run-ci.sh
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }}
- name: Cleanup
shell: bash
run: |
rm -rf "$HOME/.ivy2/local" || true
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt -name "*.lock" -delete || true