Skip to content

Commit a4cc688

Browse files
committed
Update JDK
1 parent e1548b6 commit a4cc688

2 files changed

Lines changed: 81 additions & 4 deletions

File tree

‎.github/workflows/installer.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Make installer
1+
name: Make installer 2.x
22
on:
33
workflow_dispatch:
44
inputs:
55
sbt_ver:
66
description: the version of sbt to release
77
required: true
8-
default: 2.0.x
8+
default: 2.1.x
99
dist_patchver:
1010
description: patch version if needed
1111
required: true
@@ -16,11 +16,11 @@ jobs:
1616
matrix:
1717
include:
1818
- os: ubuntu-latest
19-
java: 8
19+
java: 17
2020
distribution: temurin
2121
jobtype: 1
2222
- os: windows-latest
23-
java: 8
23+
java: 17
2424
distribution: temurin
2525
jobtype: 2
2626
runs-on: ${{ matrix.os }}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Make installer 1.x
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
sbt_ver:
6+
description: the version of sbt to release
7+
required: true
8+
default: 2.0.x
9+
dist_patchver:
10+
description: patch version if needed
11+
required: true
12+
default: 0
13+
jobs:
14+
test:
15+
strategy:
16+
matrix:
17+
include:
18+
- os: ubuntu-latest
19+
java: 8
20+
distribution: temurin
21+
jobtype: 1
22+
- os: windows-latest
23+
java: 8
24+
distribution: temurin
25+
jobtype: 2
26+
runs-on: ${{ matrix.os }}
27+
env:
28+
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M
29+
SBT_VER: ${{ github.event.inputs.sbt_ver }}
30+
DIST_PATCHVER: ${{ github.event.inputs.dist_patchver }}
31+
steps:
32+
- name: Checkout sbt/sbt-dist
33+
uses: actions/checkout@v7
34+
- name: Checkout sbt/sbt
35+
uses: actions/checkout@v7
36+
with:
37+
repository: sbt/sbt
38+
ref: v${{ github.event.inputs.sbt_ver }}
39+
path: sbt
40+
- name: Setup JDK
41+
uses: actions/setup-java@v6
42+
with:
43+
distribution: "${{ matrix.distribution }}"
44+
java-version: "${{ matrix.java }}"
45+
- uses: sbt/setup-sbt@v1
46+
with:
47+
sbt-runner-version: 1.11.5
48+
- name: Build (1)
49+
if: ${{ matrix.jobtype == 1 }}
50+
shell: bash
51+
run: |
52+
mode=build bin/run-ci.sh
53+
- name: Build (2)
54+
if: ${{ matrix.jobtype == 2 }}
55+
shell: bash
56+
run: |
57+
mode=build bin/run-ci-win.sh
58+
- name: Cleanup
59+
shell: bash
60+
run: |
61+
rm -rf "$HOME/.ivy2/local" || true
62+
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
63+
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
64+
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
65+
find $HOME/.sbt -name "*.lock" -delete || true
66+
- name: Archive Windows installer artifacts
67+
if: ${{ runner.os == 'Windows' }}
68+
uses: actions/upload-artifact@v7
69+
with:
70+
name: dist-${{ runner.os }}
71+
path: sbt/launcher-package/target/windows
72+
- name: Archive Linux installer artifacts
73+
if: ${{ runner.os == 'Linux' }}
74+
uses: actions/upload-artifact@v7
75+
with:
76+
name: dist-${{ runner.os }}
77+
path: sbt/launcher-package/target/universal

0 commit comments

Comments
 (0)