|
6 | 6 | - 'associated-token-account/**'
|
7 | 7 | - 'token/**'
|
8 | 8 | - 'ci/*-version.sh'
|
| 9 | + - '.github/workflows/pull-request-token.yml' |
9 | 10 | push:
|
10 | 11 | branches: [master]
|
11 | 12 | paths:
|
12 | 13 | - 'associated-token-account/**'
|
13 | 14 | - 'token/**'
|
14 | 15 | - 'ci/*-version.sh'
|
| 16 | + - '.github/workflows/pull-request-token.yml' |
15 | 17 |
|
16 | 18 | jobs:
|
17 | 19 | cargo-test-bpf:
|
|
62 | 64 | - name: Build and test ATA
|
63 | 65 | run: ./ci/cargo-test-bpf.sh associated-token-account
|
64 | 66 |
|
65 |
| - - name: Build and test token-2022 twoxtx (TEMPORARY) |
66 |
| - run: | |
67 |
| - ./token/twoxtx-setup.sh |
68 |
| - ./ci/cargo-test-bpf.sh token/program-2022-test |
69 |
| -
|
70 | 67 | - name: Build and test token-2022 with "serde" activated
|
71 | 68 | run: |
|
72 | 69 | cargo +"${{ env.RUST_STABLE }}" test \
|
|
82 | 79 | path: "target/deploy/*.so"
|
83 | 80 | if-no-files-found: error
|
84 | 81 |
|
| 82 | + cargo-test-bpf-twoxtx: |
| 83 | + runs-on: ubuntu-latest |
| 84 | + steps: |
| 85 | + - uses: actions/checkout@v2 |
| 86 | + |
| 87 | + - name: Set env vars |
| 88 | + run: | |
| 89 | + echo "RUST_STABLE_VERSION=1.60.0" >> $GITHUB_ENV |
| 90 | + source ci/rust-version.sh |
| 91 | + echo "RUST_STABLE=$rust_stable" >> $GITHUB_ENV |
| 92 | + source ci/solana-version.sh |
| 93 | + echo "SOLANA_VERSION=$solana_version" >> $GITHUB_ENV |
| 94 | +
|
| 95 | + - uses: actions-rs/toolchain@v1 |
| 96 | + with: |
| 97 | + toolchain: ${{ env.RUST_STABLE }} |
| 98 | + override: true |
| 99 | + profile: minimal |
| 100 | + |
| 101 | + - uses: actions/cache@v2 |
| 102 | + with: |
| 103 | + path: | |
| 104 | + ~/.cargo/registry |
| 105 | + ~/.cargo/git |
| 106 | + key: cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ env.RUST_STABLE}} |
| 107 | + |
| 108 | + - name: Install dependencies |
| 109 | + run: | |
| 110 | + ./ci/install-build-deps.sh |
| 111 | + ./ci/install-program-deps.sh |
| 112 | + echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH |
| 113 | +
|
| 114 | + - name: Build and test token-2022 twoxtx (TEMPORARY) |
| 115 | + run: | |
| 116 | + ./token/twoxtx-setup.sh |
| 117 | + ./ci/cargo-test-bpf.sh token/program-2022-test |
| 118 | +
|
85 | 119 | js-test:
|
86 | 120 | runs-on: ubuntu-latest
|
87 | 121 | env:
|
|
0 commit comments