File tree Expand file tree Collapse file tree 2 files changed +54
-1
lines changed
Expand file tree Collapse file tree 2 files changed +54
-1
lines changed Original file line number Diff line number Diff line change 1+ name : CI Native CLI
2+
3+ on :
4+ schedule :
5+ - cron : ' 0 12 * * 3' # This runs the workflow every wednesday day at 12:00 UTC
6+ env :
7+ NATIVE_VERSION : 100.100.100
8+
9+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
10+ jobs :
11+ CI :
12+ strategy :
13+ matrix :
14+ os : [ mulesoft-ubuntu, mulesoft-windows ]
15+ include :
16+ - os : mulesoft-ubuntu
17+ script_name : linux
18+ - os : mulesoft-windows
19+ script_name : windows
20+ runs-on : ${{ matrix.os }}
21+ # Steps represent a sequence of tasks that will be executed as part of the job
22+ steps :
23+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
24+ - uses : actions/checkout@v4
25+
26+ - name : Setup Gradle
27+ uses : gradle/actions/setup-gradle@v3
28+
29+ # Setup Graalvm
30+ - name : Setup Graalvm
31+ uses : graalvm/setup-graalvm@v1
32+ with :
33+ java-version : ' 24'
34+ distribution : ' graalvm-community'
35+ github-token : ${{ secrets.GITHUB_TOKEN }}
36+
37+ # Runs a single command using the runners shell
38+ - name : Run Build (Latest)
39+ run : |
40+ ./gradlew --stacktrace --no-problems-report -PweaveVersion=2.11.0-SNAPSHOT -PweaveTestSuiteVersion=2.11.0-SNAPSHOT -PweaveSuiteVersion=2.11.0-SNAPSHOT build
41+ shell : bash
42+
43+ # Generate distro
44+ - name : Create Distro
45+ run : ./gradlew --stacktrace --no-problems-report -PweaveVersion=2.11.0-SNAPSHOT -PweaveTestSuiteVersion=2.11.0-SNAPSHOT -PweaveSuiteVersion=2.11.0-SNAPSHOT native-cli:distro
46+ shell : bash
47+
48+ # Upload the artifact file
49+ - name : Upload generated script
50+ uses : actions/upload-artifact@v4
51+ with :
52+ name : dw-${{env.NATIVE_VERSION}}-${{runner.os}}
53+ path : native-cli/build/distributions/native-cli-${{env.NATIVE_VERSION}}-native-distro-${{ matrix.script_name }}.zip
Original file line number Diff line number Diff line change 3131
3232 - name : Setup Gradle
3333 uses : gradle/actions/setup-gradle@v3
34-
34+
3535 # Setup Graalvm
3636 - name : Setup Graalvm
3737 uses : graalvm/setup-graalvm@v1
You can’t perform that action at this time.
0 commit comments