-
Notifications
You must be signed in to change notification settings - Fork 381
39 lines (35 loc) · 1.23 KB
/
native-build.yml
File metadata and controls
39 lines (35 loc) · 1.23 KB
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
name: Native Build
on:
workflow_dispatch:
env:
GRADLE_OPTS: -Dorg.gradle.daemon=false
permissions: read-all
jobs:
analyzer-only:
runs-on: ubuntu-24.04
steps:
- name: Checkout Repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- name: Setup GraalVM
uses: graalvm/setup-graalvm@329c42c5f4c343bceb505f0b28cc8499bc2bf174 # v1.5.4
with:
distribution: graalvm
java-version: 25
native-image-job-reports: true
- name: Setup Gradle
uses: gradle/actions/setup-gradle@50e97c2cd7a37755bbfafc9c5b7cafaece252f6e # v6.1.0
- name: Build Executable
run: ./gradlew -P cliAnalyzerOnly=true --no-configuration-cache :cli:nativeCompile
- name: Compress Executable
uses: crazy-max/ghaction-upx@c83f378efc804f828e988debb88ed6116feb2368 # v4.0.0
with:
files: cli/build/native/nativeCompile/ort
- name: Upload Executable
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ORT Analyzer-only
path: cli/build/native/nativeCompile/ort
archive: false
retention-days: 7