Skip to content

Commit

Permalink
Update ci workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewCarlson committed Oct 25, 2024
1 parent e00a9ff commit 6e5001c
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ jobs:
distribution: 'zulu'
java-version: 17

- uses: gradle/actions/setup-gradle@v4

- name: Cache Build files
uses: actions/cache@v4
with:
Expand All @@ -66,27 +68,21 @@ jobs:
%USERPROFILE%\.konan
key: ${{ runner.os }}-${{ hashFiles('gradle.properties') }}

- uses: gradle/gradle-build-action@v3
name: Test Apple Targets
- name: Test Apple Targets
if: startsWith(matrix.os, 'macos')
with:
arguments: linkMacosX64 #:ktpack:macosX64Test :ktpack-cli-tests:macosX64Test
run: ./gradlew linkMacosX64 #:ktpack:macosX64Test :ktpack-cli-tests:macosX64Test

- uses: gradle/gradle-build-action@v3
name: Test Linux Target
- name: Test Linux Target
if: startsWith(matrix.os, 'ubuntu')
env:
KTPACK_PATH: /home/runner/work/ktpack
with:
arguments: linkLinuxX64 #:ktpack:linuxX64Test :ktpack-cli-tests:linuxX64Test
run: ./gradlew linkLinuxX64 #:ktpack:linuxX64Test :ktpack-cli-tests:linuxX64Test

- uses: gradle/gradle-build-action@v3
name: Test Windows Target
- name: Test Windows Target
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
if: startsWith(matrix.os, 'windows')
with:
arguments: linkWindowsX64 #:ktpack:windowsX64Test :ktpack-cli-tests:windowsX64Test
run: ./gradlew linkWindowsX64 #:ktpack:windowsX64Test :ktpack-cli-tests:windowsX64Test

- name: Publish Test Reports
uses: mikepenz/action-junit-report@v4
Expand Down

0 comments on commit 6e5001c

Please sign in to comment.