-
Notifications
You must be signed in to change notification settings - Fork 1
128 lines (102 loc) · 3.14 KB
/
ci.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
name: CI
on: [ push, pull_request ]
jobs:
build-linux:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '22'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: install tools
run: |
wget -O jextract.tar.gz https://download.java.net/java/early_access/jextract/22/5/openjdk-22-jextract+5-33_linux-x64_bin.tar.gz
tar -xvzf jextract.tar.gz
sudo apt-get install -y --no-install-recommends libglfw3 libglfw3-dev libx11-dev libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libxext-dev libxfixes-dev libwayland-dev libxkbcommon-dev
- name: install bake
run: |
git clone https://github.com/SanderMertens/bake
make -C bake/build-$(uname)
bake/bake setup
- name: compile and jextract native modules
run: |
bin/ci.sh
- name: run test
run: |
bin/kaocha
build-macos:
runs-on: macOS-latest
timeout-minutes: 30
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '22'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: install tools
run: |
wget -O jextract.tar.gz https://download.java.net/java/early_access/jextract/22/5/openjdk-22-jextract+5-33_macos-aarch64_bin.tar.gz
tar -xvzf jextract.tar.gz
- name: install bake
run: |
git clone https://github.com/SanderMertens/bake
make -C bake/build-$(uname)
bake/bake setup
- name: compile and jextract native modules
run: |
bin/ci.sh
- name: run test
run: |
bin/kaocha
build-windows:
runs-on: windows-latest
timeout-minutes: 30
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- uses: mlugg/setup-zig@v1
- name: Prepare java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '22'
- name: Install clojure tools
uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: install tools
run: |
wget -O jextract.tar.gz https://download.java.net/java/early_access/jextract/22/5/openjdk-22-jextract+5-33_windows-x64_bin.tar.gz
tar -xvzf jextract.tar.gz
- name: install bake
run: |
git clone https://github.com/SanderMertens/bake
cd bake\build-Windows
nmake
cd ..
./bake setup --local
- name: compile and jextract native modules
run: bin/ci.sh
- name: run test
run: |
bin/kaocha