-
-
Notifications
You must be signed in to change notification settings - Fork 365
128 lines (119 loc) · 3.65 KB
/
actions.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: CI
on:
push:
branches:
- main
- 2.x
pull_request:
# cancel older runs of a pull request;
# this will not cancel anything for normal git pushes
concurrency:
group: cancel-old-pr-runs-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
java-version: [ 8, 17 ]
scala-binary-version: [ 2.12, 2.13, 3 ]
include:
# Including lowest/highest versions that work with Java 21
- java-version: 21
scala-version: 2.12.18
- java-version: 21
scala-version: 2.12.19
- java-version: 21
scala-version: 2.13.11
- java-version: 21
scala-version: 2.13.14
- java-version: 21
scala-version: 3.3.1
- java-version: 21
scala-version: 3.3.3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- run: ./mill -i -k unitTest "${{ matrix.scala-version }}"
itest:
strategy:
fail-fast: false
matrix:
java-version: [ 8, 17 ]
scala-version: [ 2.12, 2.13, 3 ]
include:
# Including lowest/highest versions that work with Java 21
- java-version: 21
scala-version: 2.12.18
- java-version: 21
scala-version: 2.12.19
- java-version: 21
scala-version: 2.13.11
- java-version: 21
scala-version: 2.13.14
- java-version: 21
scala-version: 3.3.1
- java-version: 21
scala-version: 3.3.3
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- run: ./mill -i -k integrationTest ${{ matrix.scala-version }}
site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
- run: echo "Hello World" && ./mill -i publishDocs --skipDeploy true
shell: 'script -q -e -c "bash {0}"'
env:
TERM: xterm-256color
publishLocal:
strategy:
fail-fast: false
matrix:
scala-version: [ 2.12.19, 2.13.14, 3.3.3 ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
java-version: 8
distribution: temurin
- run: ./mill -i -k __[${{ matrix.scala-version }}].__.publishLocal
release:
if: github.repository == 'com-lihaoyi/Ammonite' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/2.x')
needs: [ test, itest, site, publishLocal ]
uses: ./.github/workflows/release.yml
secrets: inherit
publishDosc:
if: github.repository == 'com-lihaoyi/Ammonite' && github.ref == 'refs/heads/main'
needs: [ test, itest, site ]
uses: ./.github/workflows/publishDocs.yml
secrets:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
publishExecutable:
if: github.repository == 'com-lihaoyi/Ammonite' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/2.x')
needs: [ test, itest, site ]
uses: ./.github/workflows/publishExecutable.yml
secrets:
AMMONITE_BOT_AUTH_TOKEN: ${{ secrets.AMMONITE_BOT_AUTH_TOKEN }}