generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (38 loc) · 1.24 KB
/
graalwasm-micronaut-photon.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
name: Test GraalWasm Micronaut Photon Demo
on:
push:
paths:
- 'graalwasm/graalwasm-micronaut-photon/**'
- '.github/workflows/graalwasm-micronaut-photon.yml'
pull_request:
paths:
- 'graalwasm/graalwasm-micronaut-photon/**'
- '.github/workflows/graalwasm-micronaut-photon.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
run:
name: 'graalwasm-micronaut-photon'
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '23.0.1'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
cache: 'maven'
native-image-job-reports: 'true'
- name: Package 'graalwasm-micronaut-photon'
run: |
cd graalwasm/graalwasm-micronaut-photon
./mvnw --no-transfer-progress clean package
- name: Build native 'graalwasm-micronaut-photon'
run: |
cd graalwasm/graalwasm-micronaut-photon
./mvnw --no-transfer-progress clean package -Dpackaging=native-image
./target/demo &
sleep 10
curl --fail-with-body --silent --dump-header - -o /dev/null http://localhost:8080/photo/flipv