File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : riscv64 CI
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths-ignore :
7+ - ' **.md'
8+ - ' **.yml'
9+ - ' !**/riscv64_linux_ci.yml'
10+ - ' cmd/tools/**'
11+ - ' !cmd/tools/builders/**.v'
12+ pull_request :
13+ paths-ignore :
14+ - ' **.md'
15+ - ' **.yml'
16+ - ' !**/riscv64_linux_ci.yml'
17+ - ' cmd/tools/**'
18+ - ' !cmd/tools/builders/**.v'
19+
20+ jobs :
21+ riscv64_linux :
22+ # The host should always be Linux
23+ runs-on : ubuntu-24.04
24+ name : Build on ubuntu-24.04 riscv64
25+ steps :
26+ - uses : actions/checkout@v4
27+ - uses : uraimo/run-on-arch-action@v3
28+ name : Run commands
29+ id : runcmd
30+ with :
31+ arch : riscv64
32+ distro : ubuntu24.04
33+ base_image : --platform=linux/riscv64 riscv64/ubuntu:24.04
34+ # The token tag here is not required, but speeds up builds,
35+ # by allowing caching of the installed dependencies, which is ~2.5min:
36+ githubToken : ${{ github.token }}
37+ shell : /bin/bash
38+ install : |
39+ apt-get update -q -y
40+ apt-get install -q -y make gcc git file coreutils binutils
41+ run : |
42+ uname -a
43+ make --version
44+ gcc --version
45+ ls -la
46+ export LDFLAGS="-latomic"
47+ export VFLAGS="-gc none -no-retry-compilation -cc cc"
48+ make
49+ file ./v
50+ ls -la ./v
51+ ./v test vlib/builtin vlib/os vlib/encoding/binary
You can’t perform that action at this time.
0 commit comments