-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (43 loc) · 1.24 KB
/
main.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
51
52
53
54
55
name: CI
on: [ push, pull_request, workflow_dispatch ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
graalvm-version: [ 21 ]
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
distribution: 'graalvm-community'
java-version: ${{ matrix.graalvm-version }}
cache: 'maven'
native-image-musl: true
- name: GraalVM Compile
run: ./mvnw clean -Pnative native:compile
- name: Create ZIP and move it to tmp folder
run: mkdir tmp && zip -j tmp/flhacker.zip target/*.so target/flhacker
- name: Upload GitHub Pages artifact
# if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: 'tmp'
deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4