From 71bca12a3040f36c8f25e9fc90ca3cc4e3c5399f Mon Sep 17 00:00:00 2001 From: stslex Date: Thu, 30 Nov 2023 08:10:59 +0300 Subject: [PATCH] refactor ci --- .github/workflows/build_linux.yml | 53 +++++++++++++++++++ .../{build_app.yml => build_mac_os.yml} | 7 +-- 2 files changed, 55 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build_linux.yml rename .github/workflows/{build_app.yml => build_mac_os.yml} (81%) diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml new file mode 100644 index 00000000..21cc2daf --- /dev/null +++ b/.github/workflows/build_linux.yml @@ -0,0 +1,53 @@ +name: Project Build Linux + +on: + push: + branches: [ main ] + pull_request: + workflow_dispatch: + +jobs: + + build-android: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout branch + uses: actions/checkout@v2 + + - name: set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew assembleAndroidTest + + build-desktop: + + runs-on: ubuntu-latest + + steps: + + - name: Checkout branch + uses: actions/checkout@v2 + + - name: set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: gradle + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Build with Gradle + run: ./gradlew desktopMainClasses desktopSourcesJar desktopTestClasses \ No newline at end of file diff --git a/.github/workflows/build_app.yml b/.github/workflows/build_mac_os.yml similarity index 81% rename from .github/workflows/build_app.yml rename to .github/workflows/build_mac_os.yml index b0f152c4..fddfcfef 100644 --- a/.github/workflows/build_app.yml +++ b/.github/workflows/build_mac_os.yml @@ -1,4 +1,4 @@ -name: Project Build +name: Project Build MacOs on: push: @@ -31,7 +31,4 @@ jobs: xcode-version: latest-stable - name: Build with Gradle - run: ./gradlew build - - - name: Junit tests with Gradle - run: ./gradlew testDebugUnitTest \ No newline at end of file + run: ./gradlew iosArm64Binaries \ No newline at end of file