-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update publish plugin - Combine test workflows - Add new workflow that triggers when a tag is pushed to deploy a release version and the docs website
- Loading branch information
Showing
11 changed files
with
148 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
name: Build | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'samples/**' | ||
- '*.md' | ||
push: | ||
branches: | ||
- 'master' | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'samples/**' | ||
- '*.md' | ||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
os: [macos-14, windows-latest, ubuntu-latest] | ||
include: | ||
- os: ubuntu-latest | ||
GRADLE_ARGS: | | ||
:test:check | ||
:colormath:compileKotlinLinuxArm64 | ||
:colormath:compileKotlinWasmJs | ||
:extensions:colormath-ext-jetpack-compose:check | ||
:extensions:colormath-ext-android-colorint:check | ||
:extensions:colormath-ext-android-color:check | ||
--stacktrace | ||
- os: macos-14 | ||
GRADLE_ARGS: | | ||
macosX64Test | ||
:colormath:compileKotlinMacosArm64 | ||
iosX64Test | ||
tvosX64Test | ||
iosSimulatorArm64Test | ||
tvosSimulatorArm64Test | ||
watchosSimulatorArm64Test | ||
--stacktrace | ||
- os: windows-latest | ||
GRADLE_ARGS: mingwX64Test --stacktrace | ||
runs-on: ${{matrix.os}} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: graalvm/setup-graalvm@v1 | ||
with: | ||
java-version: 17 | ||
distribution: 'graalvm-community' | ||
set-java-home: false | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 21 | ||
- uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
arguments: ${{matrix.GRADLE_ARGS}} | ||
- name: Bundle the build report | ||
if: failure() | ||
run: find . -type d -name 'reports' | zip -@ -r build-reports.zip | ||
- name: Upload the build report | ||
if: failure() | ||
uses: actions/upload-artifact@master | ||
with: | ||
name: error-report | ||
path: build-reports.zip | ||
publish: | ||
needs: test | ||
runs-on: macos-14 | ||
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'ajalt/colormath' }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 21 | ||
- name: Deploy to sonatype | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
# disable configuration cache due to https://github.com/gradle/gradle/issues/22779 | ||
arguments: publishToMavenCentral -PsnapshotVersion=true --no-configuration-cache | ||
env: | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }} | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }} | ||
env: | ||
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.project.kotlin.incremental.multiplatform=false -Dorg.gradle.project.kotlin.native.disableCompilerDaemon=true -Dorg.gradle.jvmargs="-Dfile.encoding=UTF-8" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '**' | ||
|
||
jobs: | ||
release: | ||
runs-on: macos-14 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 21 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
- run: ./gradlew publishToMavenCentral | ||
env: | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralPassword }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_signingInMemoryKey }} | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_mavenCentralUsername }} | ||
- name: Extract release notes | ||
id: extract-release-notes | ||
uses: ffurrer2/extract-release-notes@v2 | ||
- name: Create release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
body: ${{ steps.extract-release-notes.outputs.release_notes }} | ||
- name: Dokka | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
arguments: dokkaHtml jsBrowserDistribution | ||
- name: Build mkdocs | ||
run: | | ||
pip install mkdocs-material | ||
mkdocs build | ||
- name: Deploy docs to website | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: gh-pages | ||
folder: site |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ docs/index.md | |
site/ | ||
docs/js/gradient.js | ||
docs/js/converter.js | ||
kotlin-js-store/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
POM_ARTIFACT_ID=colormath-ext-android-color | ||
POM_NAME=Andoird Color Extensions for Colormath | ||
POM_NAME=Android Color Extensions for Colormath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
POM_ARTIFACT_ID=colormath-ext-android-colorint | ||
POM_NAME=Andoird ColorInt Extensions for Colormath | ||
POM_NAME=Android ColorInt Extensions for Colormath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.