Skip to content

Commit

Permalink
Update Ant CI workflow
Browse files Browse the repository at this point in the history
Many of the actions used here have been deprecated
(special note to upload-artifact@v2), so update everything to
their newest versions.

Also, add all jars to the artifact zip, not only the base freej2me.jar
  • Loading branch information
AShiningRay committed Sep 14, 2024
1 parent 60bd997 commit 572a6c5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up OpenJDK 1.8
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'adopt'
java-version: '8'
- name: Build with Ant
run: ant -noinput -buildfile build.xml
- name: Compute commit short SHA
id: shortsha
run: echo "::set-output name=value::$(git rev-parse --short HEAD)"
- uses: actions/upload-artifact@v2
run: echo "{name}={value}" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: freej2me-${{ steps.shortsha.outputs.value }}
path: build/freej2me.jar
path: build/*.jar

0 comments on commit 572a6c5

Please sign in to comment.