downstream-project-anchor.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. name: Downstream Project - Anchor
  2. on:
  3. push:
  4. branches:
  5. - master
  6. - v[0-9]+.[0-9]+
  7. pull_request:
  8. branches:
  9. - master
  10. - v[0-9]+.[0-9]+
  11. paths:
  12. - "**.rs"
  13. - "Cargo.toml"
  14. - "Cargo.lock"
  15. - "cargo-build-sbf"
  16. - "cargo-test-sbf"
  17. - "scripts/build-downstream-anchor-projects.sh"
  18. - "scripts/patch-spl-crates-for-anchor.sh"
  19. - ".github/scripts/purge-ubuntu-runner.sh"
  20. - ".github/scripts/downstream-project-spl-install-deps.sh"
  21. - ".github/workflows/downstream-project-anchor.yml"
  22. workflow_call:
  23. inputs:
  24. branch:
  25. required: false
  26. type: string
  27. default: "master"
  28. concurrency:
  29. group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  30. cancel-in-progress: true
  31. env:
  32. SHELL: /bin/bash
  33. SCCACHE_GHA_ENABLED: "true"
  34. RUSTC_WRAPPER: "sccache"
  35. jobs:
  36. test:
  37. #if: github.repository == 'anza-xyz/agave'
  38. if: false # restore once all program-specific repos are ready
  39. runs-on: ubuntu-latest
  40. strategy:
  41. matrix:
  42. version: ["master"]
  43. steps:
  44. - uses: actions/checkout@v6
  45. - shell: bash
  46. run: |
  47. .github/scripts/purge-ubuntu-runner.sh
  48. - uses: mozilla-actions/sccache-action@v0.0.9
  49. with:
  50. version: "v0.10.0"
  51. - shell: bash
  52. run: |
  53. source .github/scripts/downstream-project-spl-install-deps.sh
  54. ./scripts/build-downstream-anchor-projects.sh ${{ matrix.version }}