Skip to content

Merge branch 'dev' into test #51

Merge branch 'dev' into test

Merge branch 'dev' into test #51

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:
branches: [ "main", "test" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
jobs:
test-x64:
strategy:
fail-fast: false
matrix:
os:
- macos-12
- ubuntu-22.04
- windows-latest
include:
- os: macos-12
target: x86_64-apple-darwin
task: macosX64Test
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
task: linuxX64Test
gcc: true
- os: windows-latest
target: x86_64-pc-windows-gnu
task: mingwX64Test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- if: ${{ matrix.gcc }}
name: Set up GCC
uses: Dup4/actions-setup-gcc@v1
- 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'
- name: Set up just
uses: extractions/setup-just@v1
- 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
- name: Set up Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: '8.2'
- name: Test Gradle availability
run: gradle build --dry-run
- name: Running Test
run: just ${{ matrix.task }}
test-arm64:
strategy:
fail-fast: false
matrix:
os:
- [ self-hosted, macOS, ARM64, aarch64-apple-darwin ]
- [ self-hosted, macOS, ARM64, aarch64-unknown-linux-gnu ]
include:
- os: [ self-hosted, macOS, ARM64, aarch64-apple-darwin ]
target: aarch64-apple-darwin
task: macosArm64Test
- os: [ self-hosted, macOS, ARM64, aarch64-unknown-linux-gnu ]
target: aarch64-unknown-linux-gnu
task: linuxArm64Test
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build kommand-core
run: just ${{ matrix.target }}
working-directory: ./kommand-core
- name: Running Test
run: just ${{ matrix.task }}