Fix twoxtx setup vis-a-vis workspace inheritance (#4063)
This commit is contained in:
parent
1caeadd65d
commit
9b5e63c39f
|
@ -114,7 +114,9 @@ jobs:
|
||||||
- name: Build and test token-2022 twoxtx (TEMPORARY)
|
- name: Build and test token-2022 twoxtx (TEMPORARY)
|
||||||
run: |
|
run: |
|
||||||
./token/twoxtx-setup.sh
|
./token/twoxtx-setup.sh
|
||||||
cargo +${{ env.RUST_STABLE_VERSION }} test-sbf --manifest-path token/program-2022-test/Cargo.toml -- --nocapture
|
./token/twoxtx-solana/cargo-build-sbf --manifest-path token/program-2022/Cargo.toml
|
||||||
|
./token/twoxtx-solana/cargo-build-sbf --manifest-path instruction-padding/program/Cargo.toml
|
||||||
|
./token/twoxtx-solana/cargo-test-sbf --manifest-path token/program-2022-test/Cargo.toml -- --nocapture
|
||||||
|
|
||||||
js-test:
|
js-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -25,4 +25,11 @@ if [[ ! -f twoxtx-solana/.twoxtx-patched ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
../patch.crates-io.sh twoxtx-solana
|
../patch.crates-io.sh twoxtx-solana
|
||||||
|
repo="token/twoxtx-solana"
|
||||||
|
if sed -n '/exclude = \[/,/\]/p' ../Cargo.toml | grep -q "$repo"; then
|
||||||
|
echo "$repo is already excluded"
|
||||||
|
else
|
||||||
|
sed -i'' ../Cargo.toml -e "/exclude/a \ \ \"$repo\","
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue