action.yaml 758 B

1234567891011121314151617181920
  1. name: "Setup"
  2. description: "Setup"
  3. runs:
  4. using: "composite"
  5. steps:
  6. - run: sudo apt-get update && sudo apt-get install -y pkg-config build-essential libudev-dev
  7. shell: bash
  8. - run: echo "ANCHOR_VERSION=$(cat ./VERSION)" >> $GITHUB_ENV
  9. shell: bash
  10. - run: git submodule update --init --recursive --depth 1
  11. shell: bash
  12. # `nightly` toolchain is currently required for building the IDL.
  13. #
  14. # Pinning the toolchain to an older date in order to fix
  15. # `error[E0635]: unknown feature stdsimd` error from `ahash`.
  16. # See: https://github.com/tkaitchuck/aHash/issues/200
  17. #
  18. # TODO: Unpin `nightly` release after upgrading Solana to `1.18`.
  19. - run: rustup toolchain install nightly-2024-01-30
  20. shell: bash