diff options
Diffstat (limited to '.github/workflows/linux.yml')
| -rw-r--r-- | .github/workflows/linux.yml | 47 |
1 files changed, 45 insertions, 2 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index fa512f8..06dda17 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml | |||
| @@ -35,6 +35,9 @@ jobs: | |||
| 35 | - os: "ubuntu-24.04" # loong64 | 35 | - os: "ubuntu-24.04" # loong64 |
| 36 | arch: "loong64" | 36 | arch: "loong64" |
| 37 | compiler: "gcc" | 37 | compiler: "gcc" |
| 38 | - os: "ubuntu-24.04" | ||
| 39 | arch: "riscv64" | ||
| 40 | compiler: "gcc" | ||
| 38 | - os: "ubuntu-24.04-arm" | 41 | - os: "ubuntu-24.04-arm" |
| 39 | arch: "native" | 42 | arch: "native" |
| 40 | compiler: "gcc" | 43 | compiler: "gcc" |
| @@ -44,7 +47,39 @@ jobs: | |||
| 44 | 47 | ||
| 45 | steps: | 48 | steps: |
| 46 | - name: "Checkout repository" | 49 | - name: "Checkout repository" |
| 47 | uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | 50 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 51 | with: | ||
| 52 | persist-credentials: false | ||
| 53 | |||
| 54 | - name: "Install test dependencies" | ||
| 55 | run: | | ||
| 56 | packages=(cmake ninja-build libio-socket-ssl-perl) | ||
| 57 | case "${{ matrix.arch }}" in | ||
| 58 | mingw32|mingw64) | ||
| 59 | packages+=(mingw-w64) | ||
| 60 | ;; | ||
| 61 | arm32) | ||
| 62 | packages+=(qemu-user-static binfmt-support g++-arm-linux-gnueabihf) | ||
| 63 | ;; | ||
| 64 | arm64) | ||
| 65 | packages+=(qemu-user-static binfmt-support g++-aarch64-linux-gnu) | ||
| 66 | ;; | ||
| 67 | loong64) | ||
| 68 | packages+=(qemu-user-static binfmt-support g++-14-loongarch64-linux-gnu) | ||
| 69 | ;; | ||
| 70 | mips32) | ||
| 71 | packages+=(qemu-user-static binfmt-support g++-mipsel-linux-gnu) | ||
| 72 | ;; | ||
| 73 | mips64) | ||
| 74 | packages+=(qemu-user-static binfmt-support g++-mips64el-linux-gnuabi64) | ||
| 75 | ;; | ||
| 76 | riscv64) | ||
| 77 | packages+=(qemu-user-static binfmt-support g++-riscv64-linux-gnu) | ||
| 78 | ;; | ||
| 79 | esac | ||
| 80 | sudo apt-get update | ||
| 81 | sudo apt-get install -y "${packages[@]}" | ||
| 82 | perl -MIO::Socket::SSL::Utils -e 1 | ||
| 48 | 83 | ||
| 49 | - name: "Run tests" | 84 | - name: "Run tests" |
| 50 | run: ./scripts/test || (status=$?; cat tests/test-suite.log; exit $status) | 85 | run: ./scripts/test || (status=$?; cat tests/test-suite.log; exit $status) |
| @@ -66,7 +101,15 @@ jobs: | |||
| 66 | os: ["ubuntu-24.04", "ubuntu-24.04-arm"] | 101 | os: ["ubuntu-24.04", "ubuntu-24.04-arm"] |
| 67 | steps: | 102 | steps: |
| 68 | - name: "Checkout repository" | 103 | - name: "Checkout repository" |
| 69 | uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | 104 | uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
| 105 | with: | ||
| 106 | persist-credentials: false | ||
| 107 | |||
| 108 | - name: "Install test dependencies" | ||
| 109 | run: | | ||
| 110 | sudo apt-get update | ||
| 111 | sudo apt-get install -y cmake ninja-build libio-socket-ssl-perl | ||
| 112 | perl -MIO::Socket::SSL::Utils -e 1 | ||
| 70 | 113 | ||
| 71 | - name: "Run tests" | 114 | - name: "Run tests" |
| 72 | run: ./scripts/test | 115 | run: ./scripts/test |
