v2 / .github / workflows / s390x_linux_ci.yml
51 lines · 49 sloc · 1.36 KB · a48e8e28ecbbdb19e5632354f2eae61863fed90b
Raw
1name: s390 CI
2
3on:
4 workflow_dispatch:
5 push:
6 paths-ignore:
7 - '**.md'
8 - '**.yml'
9 - '!**/s390x_linux_ci.yml'
10 - 'cmd/tools/**'
11 - '!cmd/tools/builders/**.v'
12 pull_request:
13 paths-ignore:
14 - '**.md'
15 - '**.yml'
16 - '!**/s390x_linux_ci.yml'
17 - 'cmd/tools/**'
18 - '!cmd/tools/builders/**.v'
19
20jobs:
21 s390x_linux:
22 # The host should always be Linux
23 runs-on: ubuntu-22.04
24 timeout-minutes: 30
25 name: Build on ubuntu-22.04 s390x
26 steps:
27 - uses: actions/checkout@v6
28 - uses: uraimo/run-on-arch-action@v3
29 name: Run commands
30 id: runcmd
31 with:
32 arch: s390x
33 distro: ubuntu22.04
34 base_image: --platform=linux/s390x s390x/ubuntu:22.04
35 # The token tag here is not required, but speeds up builds,
36 # by allowing caching of the installed dependencies, which is ~2.5min:
37 githubToken: ${{ github.token }}
38 shell: /bin/bash
39 install: |
40 apt-get update -q -y
41 apt-get install -q -y make gcc git file coreutils binutils
42 run: |
43 uname -a
44 make --version
45 gcc --version
46 ls -la
47 make
48 file ./v
49 ls -la ./v
50 ./v test vlib/builtin vlib/os vlib/encoding/binary
51 ./v test vlib/v/tests/fns/closure_test.v
52