-
Notifications
You must be signed in to change notification settings - Fork 150
72 lines (67 loc) · 1.87 KB
/
community-build.yaml
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
name: Community Build
on: [pull_request]
permissions:
contents: read
# Cancel previous runs if the PR is updated
concurrency:
cancel-in-progress: true
group: community-build-${{ github.ref }}
jobs:
# Build the JAR once for all the community builds
build-jar:
runs-on: ubuntu-latest
steps:
- name: Check out branch
uses: actions/checkout@v4
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Build Flix JAR
run: ./gradlew jar
- name: Upload Flix JAR
uses: actions/upload-artifact@v4
with:
name: flix-jar
path: build/libs/flix.jar
# Spawn a separate job per community build
community-build:
needs: build-jar
strategy:
# collect all the failures
fail-fast: false
# run them one at a time
max-parallel: 1
matrix:
repo:
- "JonathanStarup/Flix-ANSI-Terminal"
- "flix/museum"
- "jaschdoc/flix-parsers"
- "mlutze/fcwg"
- "mlutze/flix-json"
- "mlutze/flixball"
- "stephentetley/charset-locale"
- "stephentetley/flix-either"
- "stephentetley/flix-htmldoc"
- "stephentetley/flix-pretty"
runs-on: ubuntu-latest
steps:
- name: Install JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Check out project head
uses: actions/checkout@v4
with:
repository: ${{ matrix.repo }}
- name: Download Flix JAR
uses: actions/download-artifact@v4
with:
name: flix-jar
- name: Build community project
timeout-minutes: 10
run: |
# Build the project.
java -jar flix.jar build --github-token ${{ github.token }}