mirror of
https://github.com/TecharoHQ/anubis.git
synced 2025-10-04 05:41:59 +08:00
45 lines
1.1 KiB
YAML
45 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
|
|
strategy:
|
|
matrix:
|
|
host:
|
|
- riscv64
|
|
- ppc64le
|
|
- aarch64-4k
|
|
- aarch64-16k
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
fetch-tags: true
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Install CI target SSH key
|
|
uses: shimataro/ssh-key-action@d4fffb50872869abe2d9a9098a6d9c5aa7d16be4 # v2.7.0
|
|
with:
|
|
key: ${{ secrets.CI_SSH_KEY }}
|
|
name: id_rsa
|
|
known_hosts: ${{ secrets.CI_SSH_KNOWN_HOSTS }}
|
|
|
|
- uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.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 }}
|