test ubuntu-24.04-arm runner #749
Workflow file for this run
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: ci | |
on: [ push ] | |
env: | |
JAVA_VERSION: 21 | |
DOCKER_BUILD_SUMMARY: false | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ "ubuntu-latest", "ubuntu-24.04-arm", "windows-latest" ] | |
database: [ "h2", "postgresql", "mysql", "mariadb" ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
# Checkout | |
- name: Configure git to checkout as-is | |
run: git config --global core.autocrlf false | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# Setup | |
- name: Set up GraalVM | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
distribution: "graalvm" | |
cache: "maven" | |
- name: Install Playwright dependencies | |
run: sudo apt-get install -y libgbm1 | |
if: matrix.os == 'ubuntu-24.04-arm' | |
# Build & Test | |
- name: Build with Maven | |
run: mvn --batch-mode --no-transfer-progress install -Pnative -P${{ matrix.database }} -DskipTests=${{ matrix.os == 'windows-latest' && matrix.database != 'h2' }} | |
# Upload artifacts | |
- name: Upload cross-platform app | |
uses: actions/upload-artifact@v4 | |
with: | |
name: commafeed-${{ matrix.database }}-jvm | |
path: commafeed-server/target/commafeed-*.zip | |
overwrite: true | |
- name: Upload native executable | |
uses: actions/upload-artifact@v4 | |
with: | |
name: commafeed-${{ matrix.database }}-${{ runner.os }}-${{ runner.arch }} | |
path: commafeed-server/target/commafeed-*-runner* |