Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e414cc9

Browse files
author
Yannick Scherer
committed
Add 'verify-graalvm' workflow
1 parent 6bc02c9 commit e414cc9

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Verify GraalVM Compatibility
2+
3+
on:
4+
push:
5+
branches: ["master", "ci/**"]
6+
7+
jobs:
8+
verify-graalvm:
9+
strategy:
10+
matrix:
11+
build:
12+
- "linux-amd64"
13+
- "macos-amd64"
14+
include:
15+
- build: "linux-amd64"
16+
os: "ubuntu-latest"
17+
- build: "macos-amd64"
18+
os: "macos-latest"
19+
runs-on: ${{ matrix.os }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v2
23+
with:
24+
repository: "into-docker/uhttp"
25+
path: "uhttp"
26+
27+
- name: setup-clojure
28+
uses: DeLaGuardo/[email protected]
29+
with:
30+
lein: 2.9.1
31+
- name: setup-graalvm-ce
32+
uses: DeLaGuardo/[email protected]
33+
with:
34+
graalvm: "20.3.0"
35+
java: "java11"
36+
- name: setup-native-image
37+
run: gu install native-image
38+
39+
- name: compile-native-image
40+
run: |
41+
lein install
42+
cd uhttp
43+
lein uberjar
44+
native-image -jar target/uhttp.jar -H:Name=uhttp
45+
chmod +x uhttp
46+
47+
- name: verify-result
48+
run: uhttp/uhttp

0 commit comments

Comments
 (0)