Skip to content

Commit

Permalink
Only run on linux
Browse files Browse the repository at this point in the history
lillithkt committed Nov 28, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 2cf3705 commit 4b668e6
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -4,10 +4,7 @@ name: Publish
jobs:
publish:
name: Publish
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
@@ -21,32 +18,19 @@ jobs:
uses: actions/cache@v3
with:
path: common
key: ${{ runner.os }}-common-${{ hashFiles('common/**', 'build.gradle.kts', 'gradle.properties', 'gradle/libs.versions.toml') }}
key: common-${{ hashFiles('common/**', 'build.gradle.kts', 'gradle.properties', 'gradle/libs.versions.toml') }}

- name: Cache Common-Compose
uses: actions/cache@v3
with:
path: common-compose
key: ${{ runner.os }}-common-compose-${{ hashFiles('common-compose/**', 'build.gradle.kts', 'gradle.properties', 'gradle/libs.versions.toml') }}
key: common-compose-${{ hashFiles('common-compose/**', 'build.gradle.kts', 'gradle.properties', 'gradle/libs.versions.toml') }}

- name: Setup Android SDK
if: matrix.os == 'ubuntu-latest'
uses: android-actions/setup-android@v3

- name: Publish
run: |
./gradlew --no-daemon publish
env:
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}


- name: Clean up windows
if: matrix.os == 'windows-latest'
run: |
Remove-Item -Path appDesktop/build/compose/binaries -Recurse -Force
- name: Clean up linux
if: matrix.os == 'ubuntu-latest'
run: |
rm -rf appDesktop/build/compose/binaries
rm -rf appAndroid/build/outputs
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}

0 comments on commit 4b668e6

Please sign in to comment.