Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,10 @@ jobs:
BUILD:
strategy:
matrix:
# os: [ ubuntu-latest, windows-latest, macos-latest ]
os: [ ubuntu-latest, macos-latest ]
os: [ mulesoft-ubuntu ]
include:
# - os: windows-latest
# script_name: windows
- os: ubuntu-latest
- os: mulesoft-ubuntu
script_name: linux
- os: macos-latest
script_name: osx
runs-on: ${{ matrix.os }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand All @@ -39,7 +34,6 @@ jobs:
- name: Setup Graalvm
uses: graalvm/setup-graalvm@v1
with:
# version: ${{env.GRAALVM_VERSION}}
java-version: '24'
distribution: 'graalvm-community'
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
53 changes: 15 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,12 @@ jobs:
RELEASE_EXTENSION:
strategy:
matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
# os: [ macos-latest, ubuntu-latest ]
os: [ mulesoft-ubuntu ]
include:
# - os: windows-latest
# script_name: windows
- os: mulesoft-ubuntu
script_name: linux
# - os: macos-latest
# script_name: osx
runs-on: ${{ matrix.os }}

# Set permissions
# permissions:
# contents: write

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -39,7 +29,6 @@ jobs:
- name: Setup Graalvm
uses: graalvm/setup-graalvm@v1
with:
# version: ${{env.GRAALVM_VERSION}}
java-version: '24'
distribution: 'graalvm-community'
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -49,35 +38,23 @@ jobs:
echo "NATIVE_VERSION=$(echo '${{github.ref}}' | sed -e 's,.*/v\(.*\),\1,')" >> $GITHUB_ENV
shell: bash

# Create Release
- name: Create Release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: "Example body"
draft: true
prerelease: false

# Runs a single command using the runners shell
# - name: Run Build
# run: |
# ./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}}
# shell: bash
- name: Run Build
run: |
./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}}
shell: bash

# Generate distro
# - name: Create Distro
# run: ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}}
# shell: bash
- name: Create Distro
run: ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}}
shell: bash

# Upload the artifact file
# - name: Upload binaries to release
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip
# asset_name: dw-${{env.NATIVE_VERSION}}-${{runner.os}}
# tag: ${{ github.ref }}
# overwrite: true
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip
asset_name: dw-${{env.NATIVE_VERSION}}-${{runner.os}}
tag: ${{ github.ref }}
overwrite: true
Loading