Skip to content

Update github/codeql-action digest to e064762 (#19) #44

Update github/codeql-action digest to e064762 (#19)

Update github/codeql-action digest to e064762 (#19) #44

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
GRADLE_CACHE_URL: ${{ secrets.GRADLE_CACHE_URL }}
GRADLE_CACHE_USERNAME: ${{ secrets.GRADLE_CACHE_USERNAME }}
GRADLE_CACHE_PASSWORD: ${{ secrets.GRADLE_CACHE_PASSWORD }}
jobs:
build:
name: Build, test & API check (all KMP targets)
# macOS is required to compile the Apple/native klibs (iOS, macOS, tvOS) — the
# whole value of kzstd is its multiplatform reach, so CI compiles every target,
# not just the JVM one.
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Setup JDK 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Cache Konan (Kotlin/Native toolchain)
uses: actions/cache@v6
with:
path: ~/.konan
key: konan-${{ runner.os }}-${{ hashFiles('gradle/libs.versions.toml', 'gradle/wrapper/gradle-wrapper.properties') }}
restore-keys: |
konan-${{ runner.os }}-
# `build` compiles all 13 targets, runs the common/jvm/js/wasm/macOS/iOS-sim
# tests, and runs `apiCheck` (binary-compatibility-validator). Linux/Windows
# native test binaries are cross-compiled but not executed on a macOS host.
- name: Build, test & API check
run: ./gradlew build --stacktrace
- name: Coverage report (Kover XML)
run: ./gradlew koverXmlReport
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
files: build/reports/kover/report.xml
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}