Skip to content

Update ktor monorepo to v2.3.12 (#35) #55

Update ktor monorepo to v2.3.12 (#35)

Update ktor monorepo to v2.3.12 (#35) #55

Workflow file for this run

name: master
on:
push:
paths-ignore:
- '*.md'
- '*.yml'
branches:
- master
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Run tests
run: ./gradlew check --scan
- name: publish snapshots
run: ./gradlew publish
- 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
macos:
runs-on: macos-latest
strategy:
matrix:
target:
- macosX64Test publishMacosX64PublicationToDeployRepository
- macosArm64Test publishMacosArm64PublicationToDeployRepository
- iosX64Test publishIosX64PublicationToDeployRepository
- iosSimulatorArm64Test publishIosSimulatorArm64PublicationToDeployRepository
- iosArm64TestKlibrary publishIosArm64PublicationToDeployRepository
- iosArm32TestKlibrary publishIosArm32PublicationToDeployRepository
- tvosX64Test publishTvosX64PublicationToDeployRepository
- tvosArm64TestKlibrary publishTvosArm64PublicationToDeployRepository
- watchosArm32TestKlibrary publishWatchosArm32PublicationToDeployRepository
- watchosArm64TestKlibrary publishWatchosArm64PublicationToDeployRepository
- watchosX86Test publishWatchosX86PublicationToDeployRepository
- watchosX64Test publishWatchosX64PublicationToDeployRepository
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Run tests and publish
run: ./gradlew ${{ matrix.target }}
- 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
windows:
runs-on: windows-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Run tests
run: ./gradlew mingwX64Test --scan
- name: publish mingw64 snapshot
run: ./gradlew publishMingwX64PublicationToDeployRepository
- 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
env:
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=false -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8"
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}