Install solana cli more
This commit is contained in:
parent
b182848f60
commit
68ce3cc03b
|
@ -5,6 +5,9 @@ on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
|
|
||||||
|
env:
|
||||||
|
SOLANA_VERSION: v1.4.4
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
rustfmt:
|
rustfmt:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -36,6 +39,10 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
sh -c "$(curl -sSfL https://release.solana.com/$SOLANA_VERSION/install)"
|
||||||
|
echo "PATH=/home/runner/.local/share/solana/install/active_release/bin:$PATH" >> $GITHUB_ENV
|
||||||
|
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
|
||||||
|
cargo build-bpf --version
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||||
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
|
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
@ -97,8 +104,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix: ${{fromJson(needs.list_bpf_programs.outputs.matrix)}}
|
matrix: ${{fromJson(needs.list_bpf_programs.outputs.matrix)}}
|
||||||
env:
|
|
||||||
SOLANA_VERSION: v1.4.4
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
|
@ -161,7 +166,7 @@ jobs:
|
||||||
path: "*.so"
|
path: "*.so"
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
test:
|
cargo_test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -173,6 +178,10 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
sh -c "$(curl -sSfL https://release.solana.com/$SOLANA_VERSION/install)"
|
||||||
|
echo "PATH=/home/runner/.local/share/solana/install/active_release/bin:$PATH" >> $GITHUB_ENV
|
||||||
|
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
|
||||||
|
cargo build-bpf --version
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||||
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
|
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
@ -193,6 +202,14 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
cargo-test-
|
cargo-test-
|
||||||
|
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cache
|
||||||
|
key: solana-${{ env.SOLANA_VERSION }}-nonce-1
|
||||||
|
restore-keys: |
|
||||||
|
solana-nonce-1
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
|
@ -218,6 +235,10 @@ jobs:
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
|
sh -c "$(curl -sSfL https://release.solana.com/$SOLANA_VERSION/install)"
|
||||||
|
echo "PATH=/home/runner/.local/share/solana/install/active_release/bin:$PATH" >> $GITHUB_ENV
|
||||||
|
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
|
||||||
|
cargo build-bpf --version
|
||||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||||
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
|
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
|
|
Loading…
Reference in New Issue