Skip to content

Commit

Permalink
refactor ci
Browse files Browse the repository at this point in the history
  • Loading branch information
stslex committed Nov 30, 2023
1 parent 699d601 commit 71bca12
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 5 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Project Build
name: Project Build MacOs

on:
push:
Expand Down Expand Up @@ -31,7 +31,4 @@ jobs:
xcode-version: latest-stable

- name: Build with Gradle
run: ./gradlew build

- name: Junit tests with Gradle
run: ./gradlew testDebugUnitTest
run: ./gradlew iosArm64Binaries

0 comments on commit 71bca12

Please sign in to comment.