-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.08 KB
/
test-changes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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