diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml new file mode 100644 index 00000000..913a37bb --- /dev/null +++ b/.github/workflows/ant.yml @@ -0,0 +1,34 @@ +# 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" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + architecture: x64 + - name: Build with Ant + run: | + curl -o javafx.zip https://download2.gluonhq.com/openjfx/21.0.1/openjfx-21.0.1_linux-x64_bin-sdk.zip + unzip javafx.zip + sed -i.bak 's///g' build.xml + ant -noinput -buildfile build.xml + - uses: actions/upload-artifact@v3 + with: + name: Package + path: release/kmttg.jar