Skip to content

Commit

Permalink
Remove OSX and Windows distributions. Fix jrelease license. Resolves #10
Browse files Browse the repository at this point in the history
  • Loading branch information
jordeu committed Oct 29, 2021
1 parent 0d3d5b6 commit 3391307
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 102 deletions.
96 changes: 1 addition & 95 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,104 +56,10 @@ jobs:
name: tw_agent_linux
path: build/native/nativeCompile/tw-agent

mac-image:
name: Mac
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: macos-latest
timeout-minutes: 90

steps:
- name: Environment
run: env | sort

- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Setup Graalvm
uses: DeLaGuardo/setup-graalvm@master
with:
graalvm: '21.2.0'
java: 'java11'
arch: 'amd64'

- name: Install native-image component
run: gu install native-image

- name: Tests
run: ./gradlew cleanTest test

- name: Tests reports
uses: actions/upload-artifact@v2
if: failure()
with:
name: mac-test-reports
path: build/reports/tests/test/

- name: Build Native Image
run: ./gradlew nativeCompile

- name: Upload Mac native image artifact
uses: actions/upload-artifact@v2
with:
name: tw_agent_mac
path: build/native/nativeCompile/tw-agent

windows-image:
name: Windows
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: windows-latest
timeout-minutes: 90

steps:
- name: Environment
run: env | sort

- name: Checkout
uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Add MSVC dev setup
uses: ilammy/msvc-dev-cmd@v1.10.0

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.3

- name: Setup Graalvm
uses: DeLaGuardo/setup-graalvm@master
with:
graalvm: '21.2.0'
java: 'java11'
arch: 'amd64'

- name: Install native-image component
run: gu.cmd install native-image

- name: Tests
run: ./gradlew cleanTest test

- name: Tests reports
uses: actions/upload-artifact@v2
if: failure()
with:
name: windows-test-reports
path: build/reports/tests/test/

- name: Build Native Image
run: ./gradlew nativeCompile

- name: Upload Windows native image artifact
uses: actions/upload-artifact@v2
with:
name: tw_agent_windows
path: build/native/nativeCompile/tw-agent.exe

release:
name: Release
if: "contains(github.event.head_commit.message, '[release]') && github.event.ref=='refs/heads/master'"
needs: [ linux-image, mac-image, windows-image ]
needs: [ linux-image ]
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down
8 changes: 1 addition & 7 deletions jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project:
website: https://github.com/seqeralabs/tower-agent
authors:
- Seqera Labs
license: Apache-2.0
license: MPL-2.0
extraProperties:
inceptionYear: 2021

Expand Down Expand Up @@ -79,9 +79,3 @@ distributions:
- path: "tw_agent_linux/tw-agent"
transform: "{{distributionName}}-{{projectEffectiveVersion}}-linux-x86_64"
platform: linux-x86_64
- path: "tw_agent_mac/tw-agent"
transform: "{{distributionName}}-{{projectEffectiveVersion}}-osx-x86_64"
platform: osx-x86_64
- path: "tw_agent_windows/tw-agent.exe"
transform: "{{distributionName}}-{{projectEffectiveVersion}}-windows-x86_64.exe"
platform: windows-x86_64

0 comments on commit 3391307

Please sign in to comment.