seahorse.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Seahorse Build
  2. on:
  3. schedule:
  4. - cron: '0 0 1 * *'
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v2
  10. - name: Install dependencies
  11. run: |
  12. sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
  13. export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
  14. solana -V
  15. rustc -V
  16. sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev
  17. cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
  18. avm install 0.27.0
  19. avm use 0.27.0
  20. cargo install seahorse-lang
  21. declare -a StringArray=(
  22. "basics/counter/seahorse"
  23. "basics/hello-solana/seahorse"
  24. "basics/transfer-sol/seahorse"
  25. "oracles/pyth/seahorse"
  26. )
  27. for val in "${StringArray[@]}"; do
  28. echo "Building $val..."
  29. cd $val
  30. seahorse build
  31. cd - > /dev/null
  32. done
  33. shell: bash