-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (32 loc) · 895 Bytes
/
ant.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
# This workflow will build a Java project with Ant
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant
name: Java CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Javaforce
uses: actions/checkout@v4
with:
repository: pquiring/javaforce
- name: Checkout jfCraft
uses: actions/checkout@v4
with:
path: games/jfcraft
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build JavaForce with Ant
run: ant -noinput -buildfile build.xml
- name: Build jfCraft with Ant
run: |
cd games/jfcraft
ant -noinput -buildfile build.xml