-
Notifications
You must be signed in to change notification settings - Fork 4
89 lines (72 loc) · 2.73 KB
/
mobiletest.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: mobiletest
on:
workflow_dispatch:
jobs:
mac:
runs-on: macos-14
steps:
- name: Git checkout
uses: actions/checkout@v1
with:
fetch-depth: 1
submodules: 'true'
# - uses: actions/download-artifact@v1
# with:
# name: jar
# path: .
# - name: Cache GraalVM
# uses: actions/cache@v1
# id: cache-graalvm-m1
# with:
# path: ~/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final
# key: ${{ runner.os }}-graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final
# restore-keys: |
# ${{ runner.os }}-graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final
- name: Setup Clojure
# You may pin to the exact commit or the version.
# uses: DeLaGuardo/setup-clojure@5042876523f30f5efcf1d6feaa48bd1498d7814f
uses: DeLaGuardo/[email protected]
with:
# Clojure CLI version to make available on the path.
cli: 1.11.1.1435
- name: Install dependencies
run: clojure -P
- name: Download GraalVM
run: |
cd ~
if ! [ -d graalvm-ce-java17-22.0.0.2 ]; then
curl -O -sL "https://github.com/gluonhq/graal/releases/download/gluon-22.1.0.1-Final/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final.tar.gz"
sudo xattr -r -d com.apple.quarantine graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final.tar.gz
tar xzf graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final.tar.gz
fi
# - name: Install Graalvm components
# run: |
# export GRAALVM_HOME="$HOME/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final/Contents/Home"
# $GRAALVM_HOME/bin/gu install llvm-toolchain
# $GRAALVM_HOME/bin/gu install native-image
# - name: Cache Static JDK
# uses: actions/cache@v3
# with:
# key: staticjdk
# path: |
# build/staticjdk
# build/
- name: Download Static JDK
run: |
scripts/download-deps
- name: Build macOS native image
run: |
export GRAALVM_HOME="$HOME/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final/Contents/Home"
export JAVA_HOME="$GRAALVM_HOME"
export PATH=$JAVA_HOME/bin:$PATH
scripts/compile-shared
- name: Build app
run: |
export GRAALVM_HOME="$HOME/graalvm-svm-java17-darwin-m1-gluon-22.1.0.1-Final/Contents/Home"
export JAVA_HOME="$GRAALVM_HOME"
export PATH=$JAVA_HOME/bin:$PATH
scripts/build-shared
# - uses: actions/upload-artifact@v1
# with:
# path: bb
# name: babashka-${{ steps.babashka-version.outputs.version }}-macos-amd64.zip