|
1 | | -name: native-netty-plot |
| 1 | +name: archive/native-netty-plot |
2 | 2 | on: |
3 | 3 | push: |
4 | 4 | paths: |
5 | | - - 'native-netty-plot/**' |
6 | | - - '.github/workflows/native-netty-plot.yml' |
| 5 | + - 'archive/native-netty-plot/**' |
| 6 | + - '.github/workflows/archive-native-netty-plot.yml' |
7 | 7 | pull_request: |
8 | 8 | paths: |
9 | | - - 'native-netty-plot/**' |
10 | | - - '.github/workflows/native-netty-plot.yml' |
11 | | - schedule: |
12 | | - - cron: "0 0 1 * *" # run every month |
| 9 | + - 'archive/native-netty-plot/**' |
| 10 | + - '.github/workflows/archive-native-netty-plot.yml' |
13 | 11 | workflow_dispatch: |
14 | 12 | permissions: |
15 | 13 | contents: read |
16 | 14 | jobs: |
17 | 15 | run: |
18 | | - name: Run 'native-netty-plot' |
| 16 | + name: Run 'archive/native-netty-plot' |
19 | 17 | runs-on: ubuntu-latest |
20 | 18 | timeout-minutes: 20 |
21 | | - strategy: |
22 | | - matrix: |
23 | | - java-version: ['21', 'dev'] |
24 | 19 | steps: |
25 | 20 | - uses: actions/checkout@v4 |
26 | 21 | - uses: graalvm/setup-graalvm@v1 |
27 | 22 | with: |
28 | | - java-version: ${{ matrix.java-version }} |
| 23 | + java-version: '21' |
29 | 24 | distribution: 'graalvm' |
30 | 25 | github-token: ${{ secrets.GITHUB_TOKEN }} |
31 | 26 | cache: 'maven' |
32 | 27 | native-image-job-reports: 'true' |
33 | | - - name: Run 'native-netty-plot' |
| 28 | + - name: Run 'archive/native-netty-plot' |
34 | 29 | run: | |
35 | | - cd native-netty-plot |
| 30 | + cd archive/native-netty-plot |
36 | 31 | mvn --no-transfer-progress package |
37 | 32 | java -agentlib:native-image-agent=config-output-dir=src/main/resources/META-INF/native-image/com.oracle.substratevm/netty-plot -jar target/netty-plot-0.1-jar-with-dependencies.jar & |
38 | 33 | pid=$! |
39 | 34 | sleep 10 |
40 | 35 | # query service without isolate to trigger AWT code, so that it gets picked up by the agent |
41 | | - curl -i http://127.0.0.1:8080/?useIsolate=false |
| 36 | + curl -i http://localhost:8080/?useIsolate=false |
42 | 37 | kill $pid |
43 | 38 | # re-package project to include new reachability metadata collected by agent |
44 | 39 | mvn --no-transfer-progress package |
|
0 commit comments