-
Notifications
You must be signed in to change notification settings - Fork 870
51 lines (51 loc) · 1.74 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Hello Example
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
Build:
runs-on: ubuntu-20.04
steps:
- name: multiple paths
uses: actions/cache@v2
with:
path: ~/.npm
key: '${{ runner.os }}-${{ hashFiles(''TODO'') }}'
- uses: actions/checkout@v2
- run: |
rustup install stable
cargo --version
docker --version
- run: >-
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- run: >-
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
- run: |
sudo apt-get update
sudo apt-get install -y openssl --allow-unauthenticated
sudo apt-get install -y libssl-dev --allow-unauthenticated
sudo apt-get install -y clang-7 --allow-unauthenticated
sudo apt-get install -y libssl1.1 --allow-unauthenticated
clang-7 --version
npm install node
node --version
npm install
sh -c "$(curl -sSfL https://release.solana.com/v1.8.14/install)"
export PATH=~/.local/share/solana/install/active_release/bin:$PATH
solana-install info
solana-keygen new --no-bip39-passphrase
solana-test-validator --quiet &
npm run lint
npm run build:program-rust
npm run test:program-rust
cargo test-bpf --manifest-path=./src/program-rust/Cargo.toml
solana config set --url http://127.0.0.1:8899
solana program deploy dist/program/helloworld.so
npm run start
npm run build:program-c
solana program deploy dist/program/helloworld.so
npm run start