GraalVM Check #224
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
name: GraalVM Check | |
on: | |
schedule: | |
- cron: '30 18 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up GraalVM | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '17' | |
distribution: 'graalvm-community' | |
set-java-home: false | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check GraalVM installation | |
run: | | |
echo "GRAALVM_HOME: ${{ env.GRAALVM_HOME }}" | |
echo "JAVA_HOME: ${{ env.JAVA_HOME }}" | |
native-image --version | |
- name: Set Up Ballerina | |
uses: ballerina-platform/[email protected] | |
with: | |
version: latest | |
- name: Run Ballerina tests using the native executable | |
working-directory: ./ballerina | |
run: bal test --graalvm | |
env: | |
JAVA_HOME: /usr/lib/jvm/default-jvm | |
REFRESH_URL: ${{ secrets.REFRESH_URL }} | |
REFRESH_TOKEN: ${{ secrets.REFRESH_TOKEN }} | |
CLIENT_ID: ${{ secrets.CLIENT_ID }} | |
CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | |
WORKBOOK_PATH: ${{ secrets.WORKBOOK_PATH }} |