File tree Expand file tree Collapse file tree 4 files changed +203
-175
lines changed Expand file tree Collapse file tree 4 files changed +203
-175
lines changed Original file line number Diff line number Diff line change 19
19
uses : actions/checkout@v3
20
20
- uses : actions-rust-lang/setup-rust-toolchain@v1
21
21
with :
22
- toolchain : 1.67.1
23
- components : rustfmt, clippy
24
22
cache-workspaces : " pythnet/message_buffer -> target"
25
23
- name : Install Solana
26
24
run : |
33
31
unset CARGO_UNSTABLE_SPARSE_REGISTRY
34
32
unset CARGO_REGISTRIES_CRATES_IO_PROTOCOL
35
33
# 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
37
35
- name : Install g++ 12
38
36
run : |
39
37
sudo apt-get install g++-12
51
49
with :
52
50
run_install : true
53
51
- 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
55
56
- name : Copy anchor target files
56
57
run : cp ./target/idl/message_buffer.json idl/ && cp ./target/types/message_buffer.ts idl/
57
58
- name : Fix formatting (to avoid pre-commit failures)
You can’t perform that action at this time.
0 commit comments