Skip to content

Commit a696a4b

Browse files
committed
ci101
1 parent f3c5546 commit a696a4b

File tree

4 files changed

+203
-175
lines changed

4 files changed

+203
-175
lines changed

.github/workflows/ci-message-buffer.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
uses: actions/checkout@v3
2020
- uses: actions-rust-lang/setup-rust-toolchain@v1
2121
with:
22-
toolchain: 1.67.1
23-
components: rustfmt, clippy
2422
cache-workspaces: "pythnet/message_buffer -> target"
2523
- name: Install Solana
2624
run: |
@@ -33,7 +31,7 @@ jobs:
3331
unset CARGO_UNSTABLE_SPARSE_REGISTRY
3432
unset CARGO_REGISTRIES_CRATES_IO_PROTOCOL
3533
# Anchor doesn't build with newer Rust
36-
cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked
34+
cargo +1.66.1 install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked
3735
- name: Install g++ 12
3836
run: |
3937
sudo apt-get install g++-12
@@ -51,7 +49,10 @@ jobs:
5149
with:
5250
run_install: true
5351
- name: Build and generate IDLs
54-
run: anchor build
52+
run: |
53+
rustup override set 1.66.1
54+
anchor build
55+
rustup override unset
5556
- name: Copy anchor target files
5657
run: cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/
5758
- name: Fix formatting (to avoid pre-commit failures)

0 commit comments

Comments
 (0)