Update dependency antd to v5.22.4 #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
types: [ opened, synchronize, labeled ] | |
workflow_dispatch: | |
jobs: | |
get-kotlin-versions: | |
if: | | |
github.ref == 'refs/heads/main' || | |
(github.event.action == 'labeled' && github.event.label.name == 'compiler') || | |
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'compiler')) | |
runs-on: ubuntu-latest | |
outputs: | |
kotlin-versions: ${{ steps.make-kotlin-versions.outputs.value }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: make kotlin versions | |
id: make-kotlin-versions | |
run: | | |
# split by "," and trim whitespaces | |
versions=$(jq -R -s -c 'split(",") | map(gsub("^\\s+|\\s+$"; "")) | map(select(length > 0))' versions-root/supported-kotlin-versions.txt) | |
echo "value=${versions}" >> $GITHUB_OUTPUT | |
build: | |
needs: get-kotlin-versions | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
kotlin: ${{ fromJson(needs.get-kotlin-versions.outputs.kotlin-versions) }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- id: cache-key | |
run: echo "week=$(TZ=Asia/Tokyo date +%W)" >> "$GITHUB_OUTPUT" | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.gradle/wrapper | |
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches/jars-* | |
~/.gradle/caches/transforms-* | |
~/.gradle/caches/modules-* | |
key: gradle-dependencies-${{ steps.cache-key.outputs.week }}-${{ hashFiles('gradle/libs.versions.toml', '**/*.gradle.kts', 'gradle-conventions-settings/**/*.{kt,kts}', 'gradle-conventions/**/*.{kt,kts}') }}-${{ matrix.kotlin }} | |
restore-keys: gradle-dependencies-${{ steps.cache-key.outputs.week }}-${{ matrix.kotlin }}- | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.konan | |
~/.gradle/native | |
key: ${{ runner.os }}-kotlin-native-${{ steps.cache-key.outputs.week }}-${{ hashFiles('gradle/libs.versions.toml', '**/*.gradle.kts') }}-${{ matrix.kotlin }} | |
restore-keys: ${{ runner.os }}-kotlin-native-${{ steps.cache-key.outputs.week }}-${{ matrix.kotlin }}- | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches/build-cache-* | |
~/.gradle/caches/[0-9]*.* | |
.gradle | |
key: ${{ runner.os }}-gradle-build-${{ github.workflow }}-${{ steps.cache-key.outputs.week }}-${{ github.sha }}-${{ matrix.kotlin }} | |
restore-keys: ${{ runner.os }}-gradle-build-${{ github.workflow }}-${{ steps.cache-key.outputs.week }}-${{ matrix.kotlin }}- | |
- name: Build | |
env: | |
KOTLIN_VERSION: ${{ matrix.kotlin }} | |
run: ./gradlew compiler-test:allTests |