From acdb1dc48a2705a1f0b63e66d7f5ef3680cb8cd0 Mon Sep 17 00:00:00 2001 From: mlischetti Date: Fri, 24 Oct 2025 09:39:02 -0300 Subject: [PATCH] W-20004524: Build using Mulesoft runners --- .github/workflows/main.yml | 10 ++----- .github/workflows/release.yml | 53 ++++++++++------------------------- 2 files changed, 17 insertions(+), 46 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 21e71ae..c4b4cd8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffc451c..65e80cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 }} @@ -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