1- name : Build
1+ name : Build project
22
3- on : [ push, pull_request, workflow_dispatch ]
4-
5- env :
6- GRADLE_BUILD_ACTION_CACHE_DEBUG_ENABLED : true
3+ # workflow_dispatch -- for manual trigger
4+ on : [ push, workflow_dispatch ]
75
86jobs :
97 build :
10- strategy :
11- matrix :
12- os : [ ubuntu-latest, macos-latest, windows-latest ]
13- runs-on : ${{ matrix.os }}
8+
9+ runs-on : ubuntu-latest
1410
1511 steps :
1612 - name : Checkout
17- uses : actions/checkout@v4
13+ uses : actions/checkout@v3
1814
19- - name : Setup JDK 11
15+ - name : Set up JDK 11
2016 uses : actions/setup-java@v3
2117 with :
22- distribution : temurin
23- java-version : 11
18+ java-version : ' 11 '
19+ distribution : ' temurin '
2420
25- - name : Execute Gradle `build` task
26- uses : gradle/gradle-build-action@v2
27- with :
28- arguments : build --scan
29- cache-read-only : |
30- ${{ github.ref != 'refs/heads/main' &&
31- github.ref != 'refs/heads/dev' }}
32- gradle-home-cache-includes : |
33- caches
34- notifications
35- jdks
36-
37- - name : Upload `build` report
38- if : always()
39- uses : actions/upload-artifact@v3
21+ - name : Install JFlex
22+ run : |
23+ sudo apt-get install -y jflex
24+
25+ - name : Install ANTLR4 files
26+ run : |
27+ sudo apt-get install antlr4
28+
29+ - name : Generate files
30+ run : |
31+ ./benchmarks/scripts/generate_all.sh
32+
33+ - name : Build with Gradle
34+ uses : gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
4035 with :
41- name : BuildReport-${{ matrix.os }}
42- path : build/reports/
36+ arguments : build
0 commit comments