Skip to content

Commit

Permalink
update CI Flow
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Dec 14, 2022
1 parent 4282ae8 commit 58d68f4
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 2 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ concurrency:

jobs:

build:
build-core:
runs-on: ubuntu-latest
timeout-minutes: 30

Expand All @@ -37,13 +37,33 @@ jobs:
- name: Build Core
run: cd core && ./test.sh

build-android:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Install Core
run: cd core && ./install.sh

- name: Build Android
run: cd android && ./test.sh

build-macos:
build-core-macos:
runs-on: macos-latest
timeout-minutes: 30

Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/release-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release Compose

on:
push:
tags:
- 'compose*'

env:
IS_RELEASE: true
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Install Core
run: cd core && ./install.sh

- name: Install Android
run: cd android && ./install.sh

- name: Install Compose
run: cd compose && ./install.sh

- name: Release Compose
run: cd compose && ./release.sh
41 changes: 41 additions & 0 deletions .github/workflows/release-ktor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release Ktor

on:
push:
tags:
- 'ktor*'

env:
IS_RELEASE: true
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1

- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11

- name: Install Core
run: cd core && ./install.sh

- name: Install Ktor
run: cd ktor && ./install.sh

- name: Release Ktor
run: cd ktor && ./release.sh

0 comments on commit 58d68f4

Please sign in to comment.