ci-turbo-build.yml 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. name: Turbo build
  2. on:
  3. pull_request:
  4. paths:
  5. - "**.tsx?"
  6. - "**.jsx?"
  7. - "**.json"
  8. - "**.sol"
  9. - "**/package.json"
  10. - "**/package-lock.json"
  11. - "**/tsconfig.json"
  12. - .github/workflows/ci-turbo-build.yml
  13. push:
  14. branches: [main]
  15. jobs:
  16. build:
  17. runs-on: ubuntu-latest
  18. steps:
  19. - uses: actions/checkout@v4
  20. - uses: actions-rust-lang/setup-rust-toolchain@v1
  21. - uses: actions/setup-node@v4
  22. with:
  23. node-version-file: "package.json"
  24. # Libusb is a build requirement for the node-hid package and so pnpm
  25. # install will fail if this isn't in the build environment and if a
  26. # precompiled binary isn't found.
  27. - name: Install libusb
  28. run: sudo apt-get update && sudo apt-get install -y libusb-1.0-0-dev libudev-dev
  29. - uses: pnpm/action-setup@v4
  30. name: Install pnpm
  31. with:
  32. run_install: true
  33. - name: Cache for Turbo
  34. uses: rharkor/caching-for-turbo@v1.5
  35. - name: Build
  36. run: pnpm run turbo build