Skip to content

Commit

Permalink
feat: add cache to github actions (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
lart2150 authored Dec 10, 2023
1 parent 1608a82 commit e6128b7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,20 @@ jobs:
java-version: '17'
distribution: 'temurin'
architecture: x64
- name: Build with Ant
- uses: actions/cache@v3
id: javafx-cache
with:
path: javafx-sdk-21.0.1
key: ${{ runner.os }}-javafx-sdk-21.0.1
- name: Install Dependencies
if: steps.javafx-cache.outputs.cache-hit != 'true'
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/<property name="fxlib" value=".*"\/>/<property name="fxlib" value="javafx-sdk-21.0.1\/lib"\/>/g' build.xml
ant -noinput -buildfile build.xml
- name: Build with Ant
run: |
sed -i.bak 's/<property name="fxlib" value=".*"\/>/<property name="fxlib" value="javafx-sdk-21.0.1\/lib"\/>/g' build.xml
ant -noinput -buildfile build.xml
- uses: actions/upload-artifact@v3
with:
name: Package
Expand Down

0 comments on commit e6128b7

Please sign in to comment.