-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (48 loc) · 1.37 KB
/
build.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build Ragscan with GraalVM
on: [push, pull_request]
jobs:
build-with-graal:
if: false # currently disabled
name: Ragscan on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '22'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
native-image-job-reports: 'true'
- name: Build Ragscan
run: |
echo "GRAALVM_HOME: $GRAALVM_HOME"
echo "JAVA_HOME: $JAVA_HOME"
java --version
native-image --version
- name: Compile with maven
run: mvn -X -Pnative native:compile -DskipTests
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: ragscan-${{ matrix.os }}
path: ragscan*
build:
name: Ragscan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: oracle
java-version: 21
- name: Build Ragscan
run: mvn -f pom.xml clean package -DskipTests
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: ./target/ragscan.jar