fix: correct filepath on windows and mac #15
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 test and build with Gradle | |
on: | |
push: | |
branches: [ main, v*, release/* ] | |
pull_request: | |
branches: [ main, v*, release/* ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] # unsupported by 1password atm https://github.com/1Password/load-secrets-action/issues/46 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Load secrets from 1Password | |
uses: 1Password/[email protected] | |
id: OPassword-credentials | |
with: | |
export-env: true | |
env: | |
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_GHACTIONS_SA_TOKEN }} | |
GITHUB_TOKEN: op://gh/microfetch_graalvm/credential | |
- name: Set up JDK 17 | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '17' | |
distribution: 'graalvm-community' | |
github-token: ${{ steps.OPassword-credentials.outputs.GITHUB_TOKEN }} | |
native-image-job-reports: 'true' | |
native-image-pr-reports: 'true' | |
- name: test and build on ${{ matrix.os }} | |
run: ./gradlew nativeCompile |