Add GraalVM native build support #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: CI_pull_request | |
# Controls when the action will run. | |
# Triggers the workflow on push. | |
on: [pull_request] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# 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@v2 | |
# Set up Java Environment | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
# Grant execute permission to the gradlew script | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
# Build the project with Gradle | |
- name: Build with Gradle | |
env: | |
packageUser: ${{ github.actor }} | |
packagePAT: ${{ secrets.GITHUB_TOKEN }} | |
JAVA_OPTS: -DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true | |
run: | | |
./gradlew build | |
# Build Ballerina Project | |
- name: Ballerina Build | |
uses: ballerina-platform/ballerina-action/@nightly | |
with: | |
args: | |
pack ./ballerina | |
env: | |
JAVA_HOME: /usr/lib/jvm/default-jvm | |
# Test Ballerina Project | |
- name: Ballerina Test | |
uses: ballerina-platform/ballerina-action/@nightly | |
with: | |
args: | |
test --test-report --code-coverage --coverage-format=xml ./ballerina | |
env: | |
JAVA_HOME: /usr/lib/jvm/default-jvm | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 |