Skip to content

Merge branch 'dev'

Merge branch 'dev' #1

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
name: Kommand Test
on:
push:
tags:
- "*"
workflow_dispatch:
permissions:
contents: read
jobs:
publish:
runs-on: [self-hosted, macOS, ARM64, aarch64-apple-darwin]
steps:
- uses: actions/checkout@v4
- name: Set up Cargo
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.69.0
target: ${{ matrix.target }}
- name: Set up JDK 17
uses: actions/setup-java@v4.0.0
with:
java-version: '17'
distribution: 'zulu'
architecture: ${{ matrix.arch }}
cache: 'gradle'
- if: ${{ matrix.gcc }}
name: Set up GCC
uses: Dup4/actions-setup-gcc@v1
- name: Set up just
uses: extractions/setup-just@v1
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: '8.2'
- name: Test Gradle availability
run: gradle build --dry-run
- if: ${{ !matrix.gcc }}
name: Build kommand-core
run: just ${{ matrix.target }}
working-directory: ./kommand-core
- if: ${{ matrix.gcc }}
name: Build kommand-core with GCC
run: just workflow ${{ matrix.target }}
working-directory: ./kommand-core
- if: ${{ !matrix.cross }}
name: Test with Gradle
run: gradle ${{ matrix.task }} jvmTest
- if: ${{ matrix.cross }}
name: Test with Docker
run: just ${{ matrix.task }}