-
Notifications
You must be signed in to change notification settings - Fork 30
69 lines (60 loc) · 2.02 KB
/
build_all.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
name: Build All
on: [ workflow_dispatch ]
jobs:
matrix_prep:
uses: ./.github/workflows/matrix_prep.yml
display_versions:
needs: matrix_prep
runs-on: ubuntu-22.04
steps:
- name: display versions
run: echo '${{ needs.matrix_prep.outputs.versions }}' | jq '.include[].version_range[]'
build:
needs: matrix_prep
runs-on: ubuntu-22.04
strategy:
max-parallel: 20
fail-fast: false
matrix: ${{ fromJson(needs.matrix_prep.outputs.versions) }}
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: setup java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: wrapper validation
uses: gradle/actions/wrapper-validation@v3
- name: make gradle wrapper executable
if: ${{ runner.os != 'Windows' }}
run: chmod +x ./gradlew
- name: run build script
run: python3 build_all.py
env:
MC_VERSIONS: ${{ join(matrix.version_range, ',') }}
# generate_publish_workflows: # not for now, if you want to enable check **requirements** here https://github.com/OrnitheMC/feather-mappings/pull/134
# needs: build
# runs-on: ubuntu-22.04
# # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
# permissions:
# contents: write
# actions: write
# steps:
# - name: checkout repository
# uses: actions/checkout@v3
# with:
# token: ${{ secrets.WORKFLOW_TOKEN }}
#
# - name: generate publish workflow
# run: python3 .github/workflows/scripts/workflow_gen.py
#
# - name: submit publish files
# run: |
# rm -r .github/workflows/publish_*.yml
# python3 .github/workflows/scripts/workflow_gen.py
# git config user.name github-actions
# git config user.email [email protected]
# git add .
# git commit -m "publish workflows update"
# git push