ci: add aarch64 for ssh CI (#1112)
* ci: add aarch64 for ssh CI Signed-off-by: Xe Iaso <me@xeiaso.net> * ci: better comment aile and t-elos' roles Signed-off-by: Xe Iaso <me@xeiaso.net> * ci: fix aile Signed-off-by: Xe Iaso <me@xeiaso.net> * ci: update ssh known hosts secret Signed-off-by: Xe Iaso <me@xeiaso.net> * ci(ssh): replace raw connection strings with arch-quirks Signed-off-by: Xe Iaso <me@xeiaso.net> * ci(ssh): disable this check in PRs again Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
parent
0037e214a1
commit
6c283d0cd9
2 changed files with 21 additions and 12 deletions
8
.github/workflows/ssh-ci.yml
vendored
8
.github/workflows/ssh-ci.yml
vendored
|
|
@ -12,12 +12,14 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
ssh:
|
ssh:
|
||||||
if: github.repository == 'TecharoHQ/anubis'
|
if: github.repository == 'TecharoHQ/anubis'
|
||||||
runs-on: ubuntu-24.04
|
runs-on: alrest-techarohq
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
host:
|
host:
|
||||||
- ubuntu@riscv64.techaro.lol
|
- riscv64
|
||||||
- ci@ppc64le.techaro.lol
|
- ppc64le
|
||||||
|
- aarch64-4k
|
||||||
|
- aarch64-16k
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
||||||
|
|
|
||||||
|
|
@ -7,10 +7,17 @@ if [ "$#" -ne 1 ]; then
|
||||||
echo "Usage: rigging.sh <user@host>"
|
echo "Usage: rigging.sh <user@host>"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
declare -A Hosts
|
||||||
|
|
||||||
|
Hosts["riscv64"]="ubuntu@riscv64.techaro.lol" # GOARCH=riscv64 GOOS=linux
|
||||||
|
Hosts["ppc64le"]="ci@ppc64le.techaro.lol" # GOARCH=ppc64le GOOS=linux
|
||||||
|
Hosts["aarch64-4k"]="rocky@192.168.2.52" # GOARCH=arm64 GOOS=linux 4k page size
|
||||||
|
Hosts["aarch64-16k"]="ci@192.168.2.28" # GOARCH=arm64 GOOS=linux 16k page size
|
||||||
|
|
||||||
CIRunnerImage="ghcr.io/techarohq/anubis/ci-runner:latest"
|
CIRunnerImage="ghcr.io/techarohq/anubis/ci-runner:latest"
|
||||||
RunID=${GITHUB_RUN_ID:-$(uuidgen)}
|
RunID=${GITHUB_RUN_ID:-$(uuidgen)}
|
||||||
RunFolder="anubis/runs/${RunID}"
|
RunFolder="anubis/runs/${RunID}"
|
||||||
Target="${1}"
|
Target="${Hosts["$1"]}"
|
||||||
|
|
||||||
ssh "${Target}" uname -av
|
ssh "${Target}" uname -av
|
||||||
ssh "${Target}" mkdir -p "${RunFolder}"
|
ssh "${Target}" mkdir -p "${RunFolder}"
|
||||||
|
|
@ -19,13 +26,13 @@ git archive HEAD | ssh "${Target}" tar xC "${RunFolder}"
|
||||||
ssh "${Target}" <<EOF
|
ssh "${Target}" <<EOF
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
set -x
|
set -x
|
||||||
mkdir -p "anubis/cache/{go,go-build,node}"
|
mkdir -p anubis/cache/{go,go-build,node}
|
||||||
podman pull ${CIRunnerImage}
|
podman pull ${CIRunnerImage}
|
||||||
podman run --rm -it \
|
podman run --rm -it \
|
||||||
-v "\$HOME/${RunFolder}:/app/anubis" \
|
-v "\$HOME/${RunFolder}:/app/anubis:z" \
|
||||||
-v "\$HOME/anubis/cache/go:/root/go" \
|
-v "\$HOME/anubis/cache/go:/root/go:z" \
|
||||||
-v "\$HOME/anubis/cache/go-build:/root/.cache/go-build" \
|
-v "\$HOME/anubis/cache/go-build:/root/.cache/go-build:z" \
|
||||||
-v "\$HOME/anubis/cache/node:/root/.npm" \
|
-v "\$HOME/anubis/cache/node:/root/.npm:z" \
|
||||||
-w /app/anubis \
|
-w /app/anubis \
|
||||||
${CIRunnerImage} \
|
${CIRunnerImage} \
|
||||||
sh /app/anubis/test/ssh-ci/in-container.sh
|
sh /app/anubis/test/ssh-ci/in-container.sh
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue