-
Notifications
You must be signed in to change notification settings - Fork 11
66 lines (51 loc) · 1.79 KB
/
ant-clava-js.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
# This workflow will build a Java project with Ant
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-ant
name: Java CI - Clava JS
on:
push:
pull_request:
# Daily at midnight
schedule:
- cron: '0 0 * * *'
permissions:
checks: write
jobs:
build:
runs-on: ubuntu-latest
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
DEFAULT_BRANCH: ${{ github.base_ref || 'master' }}
steps:
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: current
dependency-graph: generate-and-submit
- name: Checkout Clava
uses: actions/checkout@v4
with:
path: clava
- id: Branch-lara-framework
run: git ls-remote --heads [email protected]:specs-feup/lara-framework.git refs/heads/${{ env.BRANCH_NAME }} | wc -l
- id: Branch-specs-java-libs
run: git ls-remote --heads [email protected]:specs-feup/specs-java-libs.git refs/heads/${{ env.BRANCH_NAME }} | wc -l
- name: Checkout lara-framework
uses: actions/checkout@v4
with:
repository: specs-feup/lara-framework
path: lara-framework
ref: ${{ steps.Branch-lara-framework.outputs.stdout == '1' && env.BRANCH_NAME || env.DEFAULT_BRANCH }}
- name: Checkout specs-java-libs
uses: actions/checkout@v4
with:
repository: specs-feup/specs-java-libs
path: specs-java-libs
ref: ${{ steps.Branch-specs-java-libs.outputs.stdout == '1' && env.BRANCH_NAME || env.DEFAULT_BRANCH }}
- run: cd clava/ClavaWeaver
- name: Build with Gradle
run: gradle build --no-daemon