File tree 4 files changed +67
-54
lines changed
4 files changed +67
-54
lines changed Original file line number Diff line number Diff line change 1
1
dist : bionic
2
2
language : rust
3
3
rust :
4
- - nightly
4
+ - stable
5
5
env :
6
- - NODE_VERSION="14.7.0"
6
+ global :
7
+ - NODE_VERSION="v14.7.0"
8
+ - SOLANA_VERSION="v1.6.3"
9
+ - ANCHOR_VERSION="v0.4.1"
7
10
8
11
before_deploy :
9
12
- anchor build --verifiable
10
13
- echo "### SHA256 Checksums" > release_notes.md
11
14
- sha256sum target/deploy/multisig.so > binary.txt
12
15
- sha256sum target/idl/multisig.json > idl.txt
13
16
- cat *.txt >> release_notes.md
17
+ - echo "" >> release_notes.md
18
+ - echo "Built with Anchor [${ANCHOR_VERSION}](https://github.com/project-serum/anchor/releases/tag/${ANCHOR_VERSION})." >> release_notes.md
14
19
15
20
deploy :
16
21
provider : releases
@@ -31,11 +36,11 @@ _defaults: &defaults
31
36
- npm install -g mocha
32
37
- npm install -g @project-serum/anchor
33
38
- sudo apt-get install -y pkg-config build-essential libudev-dev
34
- - sh -c "$(curl -sSfL https://release.solana.com/v1.5.5 /install)"
39
+ - sh -c "$(curl -sSfL https://release.solana.com/${SOLANA_VERSION} /install)"
35
40
- export PATH="/home/travis/.local/share/solana/install/active_release/bin:$PATH"
36
- - export NODE_PATH="/home/travis/.nvm/versions/node/v$ NODE_VERSION/lib/node_modules/:$NODE_PATH"
41
+ - export NODE_PATH="/home/travis/.nvm/versions/node/${ NODE_VERSION} /lib/node_modules/:${ NODE_PATH} "
37
42
- yes | solana-keygen new
38
- - cargo install --git https://github.com/project-serum/anchor anchor-cli --locked
43
+ - cargo install --git https://github.com/project-serum/anchor --tag ${ANCHOR_VERSION} anchor-cli --locked
39
44
40
45
jobs :
41
46
include :
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ cpi = ["no-entrypoint"]
15
15
default = []
16
16
17
17
[dependencies ]
18
- anchor-lang = " 0.3.0 "
18
+ anchor-lang = " 0.4.1 "
Original file line number Diff line number Diff line change 17
17
//! the `execute_transaction`, once enough (i.e. `threhsold`) of the owners have
18
18
//! signed.
19
19
20
- #![ feature( proc_macro_hygiene) ]
21
-
22
20
use anchor_lang:: prelude:: * ;
23
21
use anchor_lang:: solana_program;
24
22
use anchor_lang:: solana_program:: instruction:: Instruction ;
You can’t perform that action at this time.
0 commit comments