Files
craftlabs-authorization-sdk/.github/workflows/ci-native.yml
T
dependabot[bot] 32a5ae491a build(deps): bump actions/setup-java from 4 to 5
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4 to 5.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-java
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-09 08:18:47 +00:00

41 lines
1.1 KiB
YAML

name: ci-native
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Set up JDK (JNI)
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "17"
- name: Configure & build (Unix)
if: runner.os != 'Windows'
run: |
cmake -S native -B native/build -DCMAKE_BUILD_TYPE=Release
cmake --build native/build --parallel
- name: Configure & build (Windows)
if: runner.os == 'Windows'
run: |
cmake -S native -B native/build -DCMAKE_BUILD_TYPE=Release
cmake --build native/build --config Release --parallel
- name: Test (Unix)
if: runner.os != 'Windows'
working-directory: native/build
run: ctest --output-on-failure
- name: Test (Windows)
if: runner.os == 'Windows'
working-directory: native/build
run: ctest -C Release --output-on-failure