|
31 | 31 | run: yarn type:check:api
|
32 | 32 |
|
33 | 33 | build:
|
| 34 | + timeout-minutes: 90 |
34 | 35 | strategy:
|
35 | 36 | matrix:
|
36 | 37 | package:
|
|
44 | 45 | - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
|
45 | 46 | - name: Set up environment
|
46 | 47 | uses: ./.github/actions/setup
|
| 48 | + |
| 49 | + # ---------------------------- |
| 50 | + # Solidity setup |
47 | 51 | - name: Install Foundry
|
48 | 52 | if: matrix.package == 'solidity'
|
49 | 53 | uses: foundry-rs/foundry-toolchain@82dee4ba654bd2146511f85f0d013af94670c4de #v1.4.0
|
| 54 | + |
| 55 | + # ---------------------------- |
| 56 | + # Stellar setup |
| 57 | + |
| 58 | + - name: Free up disk space |
| 59 | + if: matrix.package == 'stellar' |
| 60 | + run: | |
| 61 | + sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/lib/android |
| 62 | + df -h |
| 63 | + |
| 64 | + # - name: Get scaffold-stellar latest commit SHA |
| 65 | + # if: matrix.package == 'stellar' |
| 66 | + # id: get-scaffold-sha |
| 67 | + # run: | |
| 68 | + # echo "sha=$(git ls-remote https://github.com/ahalabs/scaffold-stellar HEAD | cut -f1)" >> $GITHUB_OUTPUT |
| 69 | + |
| 70 | + # - name: Cache Scaffold CLIs |
| 71 | + # if: matrix.package == 'stellar' |
| 72 | + # uses: actions/cache@v4 |
| 73 | + # with: |
| 74 | + # path: | |
| 75 | + # ~/.cargo/bin/ |
| 76 | + # ~/.cargo/registry/index/ |
| 77 | + # ~/.cargo/registry/cache/ |
| 78 | + # ~/.cargo/git/db/ |
| 79 | + # key: cargo-scaffold-${{ matrix.package }}-${{ steps.get-scaffold-sha.outputs.sha }} |
| 80 | + # restore-keys: | |
| 81 | + # cargo-scaffold-${{ matrix.package }}- |
| 82 | + # cargo-scaffold- |
| 83 | + # cargo-scaffold- |
| 84 | + |
| 85 | + - name: Set up Rust |
| 86 | + if: matrix.package == 'stellar' |
| 87 | + uses: actions-rs/toolchain@v1 |
| 88 | + with: |
| 89 | + toolchain: 1.86.0 |
| 90 | + profile: minimal |
| 91 | + override: true |
| 92 | + - name: Add wasm32v1 target |
| 93 | + if: matrix.package == 'stellar' |
| 94 | + run: | |
| 95 | + if ! rustup target list --installed | grep -q wasm32v1-none; then |
| 96 | + rustup target add wasm32v1-none |
| 97 | + fi |
| 98 | +
|
| 99 | + - name: Set up Stellar CLI |
| 100 | + if: matrix.package == 'stellar' |
| 101 | + |
| 102 | + |
| 103 | + - name: Install Scaffold & Registry CLIs |
| 104 | + if: matrix.package == 'stellar' |
| 105 | + run: | |
| 106 | + rebuildIfNotFoundInCache() { |
| 107 | + local binary_name="$1" |
| 108 | +
|
| 109 | + if ! [ -x "$HOME/.cargo/bin/$binary_name" ]; then |
| 110 | + cargo install --git "https://github.com/ahalabs/scaffold-stellar" "$binary_name" |
| 111 | + fi |
| 112 | + } |
| 113 | +
|
| 114 | + rebuildIfNotFoundInCache stellar-scaffold-cli |
| 115 | + rebuildIfNotFoundInCache stellar-registry-cli |
| 116 | +
|
| 117 | + # ---------------------------- |
50 | 118 | - name: Compile TypeScript
|
51 | 119 | run: yarn tsc
|
52 | 120 | working-directory: packages/core/${{matrix.package}}
|
|
0 commit comments