-
Notifications
You must be signed in to change notification settings - Fork 3
278 lines (264 loc) · 7.67 KB
/
hello.yml
File metadata and controls
278 lines (264 loc) · 7.67 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
name: Hello RISC-V
on:
push:
pull_request:
workflow_dispatch:
jobs:
hello:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-24.04-riscv, ubuntu-24.04]
steps:
- run: echo "hello from $(uname -m)"
debug:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-24.04-riscv, ubuntu-24.04, ubuntu-24.04-arm]
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
# RUNNER_CONTEXT: ${{ toJson(runner) }}
steps:
- run: id
- run: cat /etc/passwd
- run: cat /etc/group-
- run: sudo ls -alh /etc/sudoers.d
- run: sudo tail -n 100 /etc/sudoers /etc/sudoers.d/runner || true
- run: ps aux --forest
- run: cat /etc/hostname
- run: printenv
- run: dpkg --list
- run: apt-mark showmanual
- run: ls -alh /usr/local
- run: ls -alh /usr/local/bin
- run: ls -alh /opt/hostedtoolcache
- run: ls -alh /opt/hostedtoolcache/Python || true
- run: ls -alh /opt/hostedtoolcache/Python/*.*.* || true
- run: ls -alh /opt/hostedtoolcache/Python/*.*.*/{x64,riscv64}/bin || true
- run: readelf -d /opt/hostedtoolcache/Python/3.{12,13,14}.*/{x64,riscv64}/bin/python3 || true
- run: find /opt -maxdepth 5
- run: find /home/runner -maxdepth 5
- run: find /home/runner/actions-runner/cached/2.*.*/externals -maxdepth 3 || true
- run: >-
which
mvn
ant
gradle
java
python3
python
gh
kubectl
ninja
rustc
rustup
cargo
go
- run: >-
which
mvn
ant
gradle
java
python3
python
gh
kubectl
ninja
rustc
rustup
cargo
go
| xargs realpath
- run: >-
which
mvn
ant
gradle
java
python3
python
gh
kubectl
ninja
rustc
rustup
cargo
go
| xargs realpath
| xargs dpkg -S || true
debug-container:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
# - ubuntu-24.04-riscv # we need to have unified dind and runner image for it to work properly
- ubuntu-24.04
- ubuntu-24.04-arm
container: ubuntu:24.04
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
# RUNNER_CONTEXT: ${{ toJson(runner) }}
steps:
- run: printenv
- run: dpkg --list
- run: find /__e -maxdepth 3
- name: Setup Python 3.12
uses: riseproject-dev/setup-python@main
with:
python-version: 3.12
mirror: ${{ matrix.runs-on == 'ubuntu-24.04-riscv' && 'https://raw.githubusercontent.com/riseproject-dev/python-versions/main' || '' }}
setup-python:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-24.04-riscv, ubuntu-24.04]
python-version:
- "3.14.2"
- "3.13.12"
- "3.13.0-rc.3"
- "3.12"
- "3"
freethreaded:
- false
include:
- runs-on: ubuntu-24.04-riscv
python-version: "3.14.2"
freethreaded: true
- runs-on: ubuntu-24.04-riscv
python-version: "3.14.2"
freethreaded: false
- runs-on: ubuntu-24.04
python-version: "3.14.2"
freethreaded: true
- runs-on: ubuntu-24.04
python-version: "3.14.2"
freethreaded: false
steps:
- name: Setup Python ${{ matrix.python-version }}
uses: riseproject-dev/setup-python@main
with:
python-version: ${{ matrix.python-version }}
freethreaded: ${{ matrix.freethreaded || false }}
mirror: ${{ matrix.runs-on == 'ubuntu-24.04-riscv' && 'https://raw.githubusercontent.com/riseproject-dev/python-versions/main' || '' }}
- run: python --version
setup-python-upstream:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-24.04-riscv, ubuntu-24.04]
python-version:
- "3.14"
- "3.13"
- "3.12"
- "3.11"
- "3.10"
- "3"
freethreaded:
- false
include:
- runs-on: ubuntu-24.04-riscv
python-version: "3.14"
freethreaded: true
- runs-on: ubuntu-24.04-riscv
python-version: "3.14"
freethreaded: false
- runs-on: ubuntu-24.04
python-version: "3.14"
freethreaded: true
- runs-on: ubuntu-24.04
python-version: "3.14"
freethreaded: false
steps:
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
freethreaded: ${{ matrix.freethreaded || false }}
- run: python --version
sccache:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-24.04
# - ubuntu-24.04-riscv # https://github.com/mozilla/sccache/issues/2681
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Configure sccache
uses: hendrikmuhs/ccache-action@main
with:
variant: sccache
key: sccache-${{ matrix.runs-on }}
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
- name: Build
run: |
set -eux -o pipefail
which sccache
sccache --version
cd ccache-demo
cmake -B build
cmake --build build --verbose
./build/hello
sccache --show-adv-stats
ccache:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-24.04, ubuntu-24.04-riscv]
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Configure ccache
uses: hendrikmuhs/ccache-action@main
with:
variant: ccache
key: ccache-${{ matrix.runs-on }}
save: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
- name: Build
run: |
set -eux -o pipefail
which ccache
ccache --version
ccache --zero-stats
cd ccache-demo
cmake -B build
cmake --build build --verbose
./build/hello
ccache --show-stats -vv
setup-java:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-24.04, ubuntu-24.04-riscv]
java-version: [17, 21, 25]
steps:
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- run: java -version
setup-go:
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-24.04, ubuntu-24.04-riscv]
go-version: [1.22, 1.23, 1.24, 1.24.1, 1.25, 1.26]
steps:
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: ${{ matrix.go-version }}
- run: go version