Use gradle assemble #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test GraalPy Freeze Dependencies Guide | |
on: | |
push: | |
paths: | |
- 'graalpy/graalpy-freeze-dependencies-guide/**' | |
- '.github/workflows/graalpy-freeze-dependencies-guide.yml' | |
pull_request: | |
paths: | |
- 'graalpy/graalpy-freeze-dependencies-guide/**' | |
- '.github/workflows/graalpy-freeze-dependencies-guide.yml' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
run: | |
name: 'graalpy-freeze-dependencies-guide' | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '23.0.1' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
cache: 'maven' | |
- name: Build, test, and run 'graalpy-freeze-dependencies-guide' using Maven | |
shell: bash | |
run: | | |
cd graalpy/graalpy-freeze-dependencies-guide | |
git clean -fdx | |
./mvnw --no-transfer-progress compile | |
./mvnw --no-transfer-progress exec:java -Dexec.mainClass=org.example.App | tee /tmp/output | |
grep darent /tmp/output | |
- name: Build, test, and run 'graalpy-freeze-dependencies-guide' using Gradle | |
shell: bash | |
run: | | |
cd graalpy/graalpy-freeze-dependencies-guide | |
git clean -fdx | |
./gradlew build | |
./gradlew run | tee /tmp/output | |
grep darent /tmp/output |