mirror of
https://github.com/vlang/v.git
synced 2025-09-19 04:17:46 -04:00
ci: add a s390x job (using QEMU), running the endianness related tests in builtin
, os
, and encoding.binary
(#24153)
This commit is contained in:
parent
85a2dd9f13
commit
c5ace0eded
37
.github/workflows/s390x_linux_ci.yml
vendored
Normal file
37
.github/workflows/s390x_linux_ci.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
name: s390 CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
s390x_linux:
|
||||||
|
# The host should always be Linux
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
name: Build on ubuntu-22.04 s390x
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: uraimo/run-on-arch-action@v3
|
||||||
|
name: Run commands
|
||||||
|
id: runcmd
|
||||||
|
with:
|
||||||
|
arch: s390x
|
||||||
|
distro: ubuntu22.04
|
||||||
|
base_image: --platform=linux/s390x s390x/ubuntu:22.04
|
||||||
|
# The token tag here is not required, but speeds up builds,
|
||||||
|
# by allowing caching of the installed dependencies, which is ~2.5min:
|
||||||
|
githubToken: ${{ github.token }}
|
||||||
|
shell: /bin/bash
|
||||||
|
install: |
|
||||||
|
apt-get update -q -y
|
||||||
|
apt-get install -q -y make gcc git file coreutils binutils
|
||||||
|
run: |
|
||||||
|
uname -a
|
||||||
|
make --version
|
||||||
|
gcc --version
|
||||||
|
ls -la
|
||||||
|
make
|
||||||
|
file ./v
|
||||||
|
ls -la ./v
|
||||||
|
./v test vlib/builtin vlib/os vlib/encoding/binary
|
@ -1013,7 +1013,8 @@ fn test_reading_from_proc_cpuinfo() {
|
|||||||
info := os.read_file('/proc/cpuinfo')!
|
info := os.read_file('/proc/cpuinfo')!
|
||||||
assert info.len > 0
|
assert info.len > 0
|
||||||
assert info.contains('processor')
|
assert info.contains('processor')
|
||||||
assert info.ends_with('\n\n')
|
// dump(info)
|
||||||
|
// assert info.ends_with('\n\n') // fails on QEMU for s390x
|
||||||
|
|
||||||
info_bytes := os.read_bytes('/proc/cpuinfo')!
|
info_bytes := os.read_bytes('/proc/cpuinfo')!
|
||||||
assert info_bytes.len > 0
|
assert info_bytes.len > 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user