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
53 changes: 53 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: CI Native CLI

on:
schedule:
- cron: '0 12 * * 3' # This runs the workflow every wednesday day at 12:00 UTC
env:
NATIVE_VERSION: 100.100.100

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
CI:
strategy:
matrix:
os: [ mulesoft-ubuntu, mulesoft-windows ]
include:
- os: mulesoft-ubuntu
script_name: linux
- os: mulesoft-windows
script_name: windows
runs-on: ${{ matrix.os }}
# 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
- uses: actions/checkout@v4

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

# Setup Graalvm
- name: Setup Graalvm
uses: graalvm/setup-graalvm@v1
with:
java-version: '24'
distribution: 'graalvm-community'
github-token: ${{ secrets.GITHUB_TOKEN }}

# Runs a single command using the runners shell
- name: Run Build (Latest)
run: |
./gradlew --stacktrace --no-problems-report -PweaveVersion=2.11.0-SNAPSHOT -PweaveTestSuiteVersion=2.11.0-SNAPSHOT -PweaveSuiteVersion=2.11.0-SNAPSHOT build
shell: bash

# Generate distro
- name: Create Distro
run: ./gradlew --stacktrace --no-problems-report -PweaveVersion=2.11.0-SNAPSHOT -PweaveTestSuiteVersion=2.11.0-SNAPSHOT -PweaveSuiteVersion=2.11.0-SNAPSHOT native-cli:distro
shell: bash

# Upload the artifact file
- name: Upload generated script
uses: actions/upload-artifact@v4
with:
name: dw-${{env.NATIVE_VERSION}}-${{runner.os}}
path: native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

# Setup Graalvm
- name: Setup Graalvm
uses: graalvm/setup-graalvm@v1
Expand Down
Loading