mirror of
https://github.com/TecharoHQ/anubis.git
synced 2026-04-05 08:18:17 +00:00
47 lines
1.1 KiB
YAML
47 lines
1.1 KiB
YAML
name: SSH CI
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
# pull_request:
|
|
# branches: ["main"]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
ssh:
|
|
if: github.repository == 'TecharoHQ/anubis'
|
|
#runs-on: alrest-techarohq
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
host:
|
|
- riscv64
|
|
- ppc64le
|
|
#- aarch64-4k
|
|
#- aarch64-16k
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-tags: true
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Install CI target SSH key
|
|
uses: shimataro/ssh-key-action@6b84f2e793b32fa0b03a379cadadec75cc539391 # v2.8.0
|
|
with:
|
|
key: ${{ secrets.CI_SSH_KEY }}
|
|
name: id_rsa
|
|
known_hosts: ${{ secrets.CI_SSH_KNOWN_HOSTS }}
|
|
|
|
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
|
with:
|
|
go-version: "stable"
|
|
|
|
- name: Run CI
|
|
run: go run ./utils/cmd/backoff-retry bash test/ssh-ci/rigging.sh ${{ matrix.host }}
|
|
env:
|
|
GITHUB_RUN_ID: ${{ github.run_id }}
|