ssh-ci.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: SSH CI
  2. on:
  3. push:
  4. branches: ["main"]
  5. # pull_request:
  6. # branches: ["main"]
  7. permissions:
  8. contents: read
  9. jobs:
  10. ssh:
  11. if: github.repository == 'TecharoHQ/anubis'
  12. runs-on: alrest-techarohq
  13. strategy:
  14. matrix:
  15. host:
  16. - riscv64
  17. - ppc64le
  18. - aarch64-4k
  19. - aarch64-16k
  20. steps:
  21. - name: Checkout code
  22. uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
  23. with:
  24. fetch-tags: true
  25. fetch-depth: 0
  26. persist-credentials: false
  27. - name: Install CI target SSH key
  28. uses: shimataro/ssh-key-action@d4fffb50872869abe2d9a9098a6d9c5aa7d16be4 # v2.7.0
  29. with:
  30. key: ${{ secrets.CI_SSH_KEY }}
  31. name: id_rsa
  32. known_hosts: ${{ secrets.CI_SSH_KNOWN_HOSTS }}
  33. - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
  34. with:
  35. go-version: "1.25.4"
  36. - name: Run CI
  37. run: go run ./utils/cmd/backoff-retry bash test/ssh-ci/rigging.sh ${{ matrix.host }}
  38. env:
  39. GITHUB_RUN_ID: ${{ github.run_id }}