Skip to content

Commit

Permalink
fix matrix usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex009 authored Sep 22, 2024
1 parent 8bd2734 commit b44d9ce
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/compilation-check-source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ on:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: '**/build/reports/**/*'

.download_maven: &download_maven
Expand All @@ -55,7 +55,7 @@ on:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}

.runner_matrix: &runner_matrix
os: [ macOS-latest, windows-latest, ubuntu-latest ]
Expand Down
51 changes: 25 additions & 26 deletions .github/workflows/compilation-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Check
run: ./local-check.sh
shell: bash
Expand All @@ -54,7 +54,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-sample-android-mpp-app:
runs-on: ${{ matrix.os }}
Expand All @@ -81,7 +81,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -100,7 +100,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-sample-auto-manifest:
runs-on: ${{ matrix.os }}
Expand All @@ -127,7 +127,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -146,7 +146,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-sample-compose-jvm-app:
runs-on: ${{ matrix.os }}
Expand All @@ -173,7 +173,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -192,7 +192,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-sample-resources-gallery:
runs-on: ${{ matrix.os }}
Expand All @@ -219,7 +219,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -238,7 +238,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-sample-default-hierarchy-resources-gallery-mobile:
runs-on: ${{ matrix.os }}
Expand All @@ -265,7 +265,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -284,7 +284,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-sample-ios-static-xcframework:
runs-on: macOS-latest
Expand All @@ -305,7 +305,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -324,7 +324,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-sample-ios-cocoapods-static-framework:
runs-on: macOS-latest
Expand All @@ -345,7 +345,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -364,7 +364,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-sample-kotlin-ios-app:
runs-on: macOS-latest
Expand All @@ -385,7 +385,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -404,7 +404,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-sample-compose-resources-gallery:
runs-on: ${{ matrix.os }}
Expand All @@ -431,7 +431,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -450,7 +450,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-kotlin-2-sample:
runs-on: ${{ matrix.os }}
Expand All @@ -477,7 +477,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -496,7 +496,7 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"
check-cm-resources-sample:
runs-on: ${{ matrix.os }}
Expand All @@ -523,7 +523,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.konan
key: ${{ matrix.runs-on }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
key: ${{ matrix.os }}-konan-${{ hashFiles('**/*.gradle*', 'gradle/**/*') }}
- name: Download maven artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -542,6 +542,5 @@ jobs:
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: code-coverage-report-${{ github.job }}-${{ matrix.runs-on }}
path: "**/build/reports/**/*"

name: code-coverage-report-${{ github.job }}-${{ matrix.os }}
path: "**/build/reports/**/*"

0 comments on commit b44d9ce

Please sign in to comment.