Add Okio & Ktor2 #96
Workflow file for this run
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
name: Build | |
on: | |
push: | |
branches: [ "release" ] | |
paths-ignore: [ "**.md" ] | |
pull_request: | |
branches: [ "release", "develop" ] | |
paths-ignore: [ "**.md" ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
config: [ | |
{ target: android, os: ubuntu-latest, tasks: testDebugUnitTest testReleaseUnitTest, continueOnError: false }, | |
{ target: apple, os: macos-latest, tasks: iosX64Test iosSimulatorArm64Test macosX64Test macosArm64Test tvosX64Test tvosSimulatorArm64Test, continueOnError: false }, | |
{ target: js, os: ubuntu-latest, tasks: jsTest wasmTest, continueOnError: false }, | |
{ target: desktop, os: ubuntu-latest, tasks: jvmTest, continueOnError: false }, | |
{ target: windows, os: windows-latest, tasks: mingwX64Test, continueOnError: false }, | |
{ target: linux, os: windows-latest, tasks: linuxX64Test, continueOnError: false }, | |
] | |
libBuildType: [ "korlibs", "kotlinx", "okio", "ktor2" ] | |
runs-on: ${{ matrix.config.os }} | |
name: Build ${{ matrix.config.target }} with libBuildType=${{ matrix.libBuildType }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Run tests for ${{ matrix.libBuildType }} on ${{ matrix.config.target }} | |
continue-on-error: ${{ matrix.config.continueOnError }} | |
run: | | |
chmod +x ./runTests.sh | |
./runTests.sh ${{ matrix.libBuildType }} | |
working-directory: ${{ github.workspace }} | |
# deploy: | |
# if: github.ref == 'refs/heads/release' | |
# | |
# runs-on: macos-latest | |
# needs: [ build ] | |
# | |
# steps: | |
# - uses: actions/checkout@v4 | |
# | |
# - name: Setup JDK | |
# uses: actions/setup-java@v4 | |
# with: | |
# distribution: 'temurin' | |
# java-version: 17 | |
# | |
# - uses: gradle/gradle-build-action@v3 | |
# | |
# - name: Deploy to Sonatype | |
# run: ./gradlew :ksoup:publish :ksoup-network:publish --no-configuration-cache | |
# env: | |
# ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
# ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
# ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }} | |
# ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY_ID }} | |
# ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }} | |
# | |
# deploy_docs: | |
# if: github.ref == 'refs/heads/release' | |
# runs-on: macos-latest | |
# needs: | |
# - build | |
# environment: | |
# name: github-pages | |
# url: ${{ steps.deployment.outputs.page_url }} | |
# | |
# steps: | |
# - uses: actions/checkout@v3 | |
# | |
# - name: Setup JDK 17 | |
# uses: actions/setup-java@v3 | |
# with: | |
# java-version: '17' | |
# distribution: 'temurin' | |
# | |
# - name: Setup gradle | |
# uses: gradle/gradle-build-action@v2 | |
# | |
# - name: Setup Pages | |
# uses: actions/configure-pages@v3 | |
# | |
# - name: Generate docs with dokka | |
# run: ./gradlew dokkaHtmlMultiModule | |
# | |
# - name: Upload artifact | |
# uses: actions/upload-pages-artifact@v1 | |
# with: | |
# path: ${{ github.workspace }}/build/dokka/htmlMultiModule | |
# | |
# - name: Release to GitHub Pages | |
# id: deployment | |
# uses: actions/deploy-pages@v1 |