Files
craftlabs-authorization-sdk/.github/workflows/ci-native.yml
T
dependabot[bot] e9fdb5fec0 build(deps): bump actions/checkout from 4 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-09 08:18:45 +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@v6
- name: Set up JDK (JNI)
uses: actions/setup-java@v4
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