-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Migrate to Github Actions * Run integration tests on macos, linux, windows * Rebuild yarn.lock because it was breaking * Consume prebuilt, statically linked, conformance runner artifacts from an upstream project instead of checking them in * Upgrade Gradle to 8.7-rc because of yet another file locking issue on windows (gradle/gradle#25752)
- Loading branch information
Showing
12 changed files
with
168 additions
and
2,298 deletions.
There are no files selected for viewing
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,11 @@ | ||
name: Gradle cache | ||
description: Gradle caching logic shared across builds | ||
runs: | ||
using: composite | ||
steps: | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: gradle-${{ hashFiles('gradle/libs.versions.toml', 'gradle/wrapper/gradle-wrapper.properties') }} |
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,57 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/gradle-cache | ||
- name: Set up java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: corretto | ||
java-version: 17 | ||
- name: Set up js stuff | ||
run: npm install [email protected] [email protected] | ||
- name: Build and test | ||
run: ./gradlew clean check publishToIntegrationRepository --stacktrace --no-daemon | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: integration-repository | ||
path: build/repos/integration | ||
|
||
integration: | ||
needs: build | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-latest ] | ||
kotlin: [ 1.8.22, 1.9.20 ] | ||
jdk: [ 11, 17 ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/gradle-cache | ||
- name: Set up java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: corretto | ||
java-version: ${{ matrix.jdk }} | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: integration-repository | ||
path: build/repos/integration | ||
- name: Build and test | ||
run: ./gradlew "-Dkotlin.version=${{ matrix.kotlin }}" clean build --stacktrace --no-daemon | ||
working-directory: gradle-plugin-integration-test |
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,30 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "[0-9]+\.[0-9]+\.[0-9A-Za-z-\.]+" | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: ./.github/actions/gradle-cache | ||
- name: Set up java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: corretto | ||
java-version: 17 | ||
- name: Publish | ||
run: publishAllPublicationsToMavenCentral publishPlugins --no-configuration-cache --no-stacktrace | ||
env: | ||
PGP_KEY: ${{ secrets.PGP_KEY }} | ||
PGP_PASSWORD: ${{ secrets.PGP_PASSWORD }} | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }} | ||
GRADLE_PORTAL_PUBLISH_KEY: ${{ secrets.GRADLE_PORTAL_PUBLISH_KEY }} | ||
GRADLE_PORTAL_PUBLISH_SECRET: ${{ secrets.GRADLE_PORTAL_PUBLISH_SECRET }} | ||
GRADLE_OPTS: "-Dorg.gradle.daemon=false -Dorg.gradle.internal.http.socketTimeout=120000 -Dorg.gradle.internal.network.retry.max.attempts=1 -Dorg.gradle.internal.publish.checksums.insecure=true" |
Oops, something went wrong.