build.Containerfile: run the actual build without network access #813
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: GraalVM Build | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
os: [ubuntu-24.04, macOS-13] | |
java-version: [ '17', '21' ] | |
distribution: [ 'graalvm-community' ] | |
gradle: ['8.10.2'] | |
fail-fast: false | |
name: ${{ matrix.os }} JDK ${{ matrix.java-version }}.${{ matrix.distribution }} | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Set up GraalVM | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: ${{ matrix.distribution }} | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
gradle-version: ${{ matrix.gradle }} | |
- name: Run Gradle | |
run: gradle test nativeCompile --init-script build-scan-agree.gradle --scan --info --stacktrace | |
- name: Upload wallet-tool as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wallet-tool-${{ matrix.os }}-${{ matrix.java-version }} | |
path: wallettool/build/native/nativeCompile/wallet-tool |