Skip to content

Commit

Permalink
Add mingw publish targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Mar 26, 2021
1 parent cd97e8b commit 29eea4c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 19 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
35 changes: 18 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 29eea4c

Please sign in to comment.