Repository navigation
196 lines (165 loc) · 6.49 KB
/
Copy pathclojure-compatibility.yml
File metadata and controls
196 lines (165 loc) · 6.49 KB
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
name: Clojure compatibility
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
contents: read
jobs:
check:
name: Clojure checks (JDK ${{ matrix.java }})
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
java: ['25', '27']
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
version: '0.12.0'
enable-cache: false
- uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6
with:
distribution: temurin
# Gradle runs on 25 in every lane (last entry is JAVA_HOME); the lane's JDK runs the Clojure.
java-version: |
${{ matrix.java }}
25
- uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
with:
validate-wrappers: true
- name: Run Clojure module and metadata checks
run: >-
./gradlew :libtmux-clojure:check :libtmux-clojure-core-async:check
clojureDependencyMetadata platformCoversEveryPublishedModule
--rerun-tasks --stacktrace
-PlibtmuxJavaVersion=${{ matrix.java }}
- name: No tmux server outlived the suite
if: always()
run: uv run scripts/no-tmux-survivors/no_tmux_survivors.py
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: failure()
with:
name: reports-clojure-jdk${{ matrix.java }}
path: '**/build/reports/**'
retention-days: 7
tmux:
name: Clojure tmux ${{ matrix.tmux }} (JDK ${{ matrix.java }})
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
java: ['25', '27']
tmux: ['3.3a', '3.8']
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
version: '0.12.0'
enable-cache: false
- name: Build tmux ${{ matrix.tmux }}
uses: libtmux/.github/actions/build-tmux@30f81842b1e639ea4e25f93f1f2543504178e228
with:
ref: ${{ matrix.tmux }}
prefix: ~/tmux-builds/${{ matrix.tmux }}
add-to-path: "true"
- name: The lane runs the tmux it is named after
run: tmux -V
- uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6
with:
distribution: temurin
# Gradle runs on 25 in every lane (last entry is JAVA_HOME); the lane's JDK runs the Clojure.
java-version: |
${{ matrix.java }}
25
- uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
with:
validate-wrappers: true
- name: Run the native Clojure real-tmux suite
env:
LANE: ${{ matrix.tmux }}
run: |
./gradlew :integration-tests:clojureIntegrationTest --rerun-tasks --stacktrace \
-PlibtmuxJavaVersion=${{ matrix.java }} \
"-PlibtmuxTmuxBinary=$HOME/tmux-builds/$LANE/bin/tmux" \
"-PlibtmuxTmuxExpected=$LANE"
- name: No tmux server outlived the suite
if: always()
run: uv run scripts/no-tmux-survivors/no_tmux_survivors.py
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: failure()
with:
name: reports-clojure-tmux-${{ matrix.tmux }}-jdk${{ matrix.java }}
path: '**/build/reports/**'
retention-days: 7
macos:
name: Clojure macOS tmux ${{ matrix.tmux }} (JDK ${{ matrix.java }})
runs-on: macos-latest
timeout-minutes: 25
strategy:
fail-fast: false
matrix:
java: ['25', '27']
tmux: ['3.3a', '3.8']
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
with:
version: '0.12.0'
enable-cache: false
- name: Build tmux dependencies
run: brew install libevent ncurses jemalloc bison pkg-config
- name: Restore tmux ${{ matrix.tmux }}
id: tmux-cache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: ~/tmux-builds/${{ matrix.tmux }}
key: clojure-tmux-${{ matrix.tmux }}-${{ runner.os }}-${{ runner.arch }}-jemalloc
- name: Build tmux ${{ matrix.tmux }}
if: steps.tmux-cache.outputs.cache-hit != 'true'
env:
LANE: ${{ matrix.tmux }}
run: uv run scripts/build-tmux-matrix/build_tmux_matrix.py ~/tmux-builds --only "$LANE"
- name: The lane runs the tmux it is named after
env:
LANE: ${{ matrix.tmux }}
run: >-
"$HOME/tmux-builds/$LANE/bin/tmux" -V
- name: Put the lane's tmux on the path
env:
LANE: ${{ matrix.tmux }}
run: echo "$HOME/tmux-builds/$LANE/bin" >> "$GITHUB_PATH"
- uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6
with:
distribution: temurin
# Gradle runs on 25 in every lane (last entry is JAVA_HOME); the lane's JDK runs the Clojure.
java-version: |
${{ matrix.java }}
25
- uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1
with:
validate-wrappers: true
- name: Run the native Clojure smoke and lifecycle suite
env:
LANE: ${{ matrix.tmux }}
run: |
./gradlew :integration-tests:clojureIntegrationTest --rerun-tasks --stacktrace \
-PlibtmuxJavaVersion=${{ matrix.java }} \
"-PlibtmuxTmuxBinary=$HOME/tmux-builds/$LANE/bin/tmux" \
"-PlibtmuxTmuxExpected=$LANE"
- name: No tmux server outlived the suite
if: always()
run: uv run scripts/no-tmux-survivors/no_tmux_survivors.py
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
if: failure()
with:
name: reports-clojure-macos-${{ matrix.tmux }}-jdk${{ matrix.java }}
path: '**/build/reports/**'
retention-days: 7