From 29eea4cd0e806f8ab0af873278be11dfa05f7672 Mon Sep 17 00:00:00 2001 From: AJ Date: Fri, 26 Mar 2021 10:09:58 -0700 Subject: [PATCH] Add mingw publish targets --- .github/workflows/publish.yml | 23 +++++++++++++++++++++-- .github/workflows/test.yml | 35 ++++++++++++++++++----------------- 2 files changed, 39 insertions(+), 19 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a92d6fbac..0926eb05c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,9 +16,16 @@ jobs: with: dependencies-cache-enabled: true arguments: check --stacktrace - + windows-tests: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - uses: eskatos/gradle-command-action@v1 + with: + dependencies-cache-enabled: true + arguments: mingwX64Test --stacktrace deploy-linux: - needs: [ linux-tests ] + needs: [ linux-tests, windows-tests ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -29,6 +36,18 @@ jobs: with: dependencies-cache-enabled: true arguments: :mordant:publish -PinferVersion=true + deploy-windows: + needs: [ linux-tests, windows-tests ] + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Fetch git tags + run: git fetch origin +refs/tags/*:refs/tags/* + - name: Deploy to sonatype + uses: eskatos/gradle-command-action@v1 + with: + dependencies-cache-enabled: true + arguments: :mordant:publishMingwX64PublicationToMavenRepository -PinferVersion=true env: GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dorg.gradle.parallel=true -Dkotlin.incremental=false -Dorg.gradle.project.kotlin.incremental.multiplatform=false -Dorg.gradle.project.kotlin.native.disableCompilerDaemon=true -Dorg.gradle.jvmargs="-Xmx5g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2c6cb3ea5..847979bc7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,23 +23,24 @@ jobs: with: name: error-report path: build-reports.zip - macos-tests: - runs-on: macos-latest - steps: - - uses: actions/checkout@v2 - - uses: eskatos/gradle-command-action@v1 - with: - dependencies-cache-enabled: true - arguments: macosX64Test --stacktrace - - 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 +# TODO: enable once macOS target is supported +# macos-tests: +# runs-on: macos-latest +# steps: +# - uses: actions/checkout@v2 +# - uses: eskatos/gradle-command-action@v1 +# with: +# dependencies-cache-enabled: true +# arguments: macosX64Test --stacktrace +# - 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-tests: runs-on: windows-latest steps: