Skip to content

Commit dd9442f

Browse files
committed
Define Java versions manual workflow as matrix
We expect to run this manually, not as a check on every commit.
1 parent 172e935 commit dd9442f

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Run ant regrtest on Jython 2.7 on Java versions (GitHub action)
2+
3+
# We expect this to fail (at the time of writing) and the purpose
4+
# is to tell us on which OSes and versions of Java that happens.
5+
6+
name: Java versions regrtest 2.7
7+
8+
# Only run manually as it takes quite a lot of cpu
9+
on:
10+
workflow_dispatch
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
17+
ant-regrtest:
18+
strategy:
19+
max-parallel: 2
20+
matrix:
21+
version: [17, 25]
22+
os: [ubuntu-latest, windows-latest]
23+
24+
runs-on: ${{ matrix.os }}
25+
timeout-minutes: 40
26+
27+
steps:
28+
- run: echo "Branch ${{ github.ref }} of repository ${{ github.repository }}."
29+
- run: echo "Java ${{ matrix.version }} on ${{ matrix.os }}."
30+
31+
# Some tests require exactly-expected line endings
32+
- run: git config --global core.autocrlf input
33+
34+
- uses: actions/checkout@v4
35+
36+
- name: Set up JDK
37+
uses: actions/setup-java@v4
38+
with:
39+
java-version: ${{ matrix.version }}
40+
distribution: 'temurin'
41+
42+
- name: Regression test with Ant
43+
run: ant -noinput -buildfile build.xml regrtest-ci
44+

0 commit comments

Comments
 (0)