Skip to content

Commit d5376ae

Browse files
authored
W-20004524: Build using Mulesoft runners (#107)
1 parent e770e56 commit d5376ae

File tree

2 files changed

+17
-46
lines changed

2 files changed

+17
-46
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,10 @@ jobs:
1717
BUILD:
1818
strategy:
1919
matrix:
20-
# os: [ ubuntu-latest, windows-latest, macos-latest ]
21-
os: [ ubuntu-latest, macos-latest ]
20+
os: [ mulesoft-ubuntu ]
2221
include:
23-
# - os: windows-latest
24-
# script_name: windows
25-
- os: ubuntu-latest
22+
- os: mulesoft-ubuntu
2623
script_name: linux
27-
- os: macos-latest
28-
script_name: osx
2924
runs-on: ${{ matrix.os }}
3025
# Steps represent a sequence of tasks that will be executed as part of the job
3126
steps:
@@ -39,7 +34,6 @@ jobs:
3934
- name: Setup Graalvm
4035
uses: graalvm/setup-graalvm@v1
4136
with:
42-
# version: ${{env.GRAALVM_VERSION}}
4337
java-version: '24'
4438
distribution: 'graalvm-community'
4539
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 15 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,12 @@ jobs:
1111
RELEASE_EXTENSION:
1212
strategy:
1313
matrix:
14-
# os: [macos-latest, ubuntu-latest, windows-latest]
15-
# os: [ macos-latest, ubuntu-latest ]
1614
os: [ mulesoft-ubuntu ]
1715
include:
18-
# - os: windows-latest
19-
# script_name: windows
2016
- os: mulesoft-ubuntu
2117
script_name: linux
22-
# - os: macos-latest
23-
# script_name: osx
2418
runs-on: ${{ matrix.os }}
2519

26-
# Set permissions
27-
# permissions:
28-
# contents: write
29-
3020
# Steps represent a sequence of tasks that will be executed as part of the job
3121
steps:
3222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -39,7 +29,6 @@ jobs:
3929
- name: Setup Graalvm
4030
uses: graalvm/setup-graalvm@v1
4131
with:
42-
# version: ${{env.GRAALVM_VERSION}}
4332
java-version: '24'
4433
distribution: 'graalvm-community'
4534
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -49,35 +38,23 @@ jobs:
4938
echo "NATIVE_VERSION=$(echo '${{github.ref}}' | sed -e 's,.*/v\(.*\),\1,')" >> $GITHUB_ENV
5039
shell: bash
5140

52-
# Create Release
53-
- name: Create Release
54-
uses: actions/create-release@latest
55-
env:
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
with:
58-
tag_name: ${{ github.ref }}
59-
release_name: ${{ github.ref }}
60-
body: "Example body"
61-
draft: true
62-
prerelease: false
63-
6441
# Runs a single command using the runners shell
65-
# - name: Run Build
66-
# run: |
67-
# ./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}}
68-
# shell: bash
42+
- name: Run Build
43+
run: |
44+
./gradlew --stacktrace --no-problems-report build -PnativeVersion=${{env.NATIVE_VERSION}}
45+
shell: bash
6946

7047
# Generate distro
71-
# - name: Create Distro
72-
# run: ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}}
73-
# shell: bash
48+
- name: Create Distro
49+
run: ./gradlew --stacktrace --no-problems-report native-cli:distro -PnativeVersion=${{env.NATIVE_VERSION}}
50+
shell: bash
7451

7552
# Upload the artifact file
76-
# - name: Upload binaries to release
77-
# uses: svenstaro/upload-release-action@v2
78-
# with:
79-
# repo_token: ${{ secrets.GITHUB_TOKEN }}
80-
# file: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip
81-
# asset_name: dw-${{env.NATIVE_VERSION}}-${{runner.os}}
82-
# tag: ${{ github.ref }}
83-
# overwrite: true
53+
- name: Upload binaries to release
54+
uses: svenstaro/upload-release-action@v2
55+
with:
56+
repo_token: ${{ secrets.GITHUB_TOKEN }}
57+
file: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip
58+
asset_name: dw-${{env.NATIVE_VERSION}}-${{runner.os}}
59+
tag: ${{ github.ref }}
60+
overwrite: true

0 commit comments

Comments
 (0)