|
@@ -12,22 +12,14 @@ jobs:
|
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
- - name: Setup Node.js environment
|
|
|
- uses: actions/setup-node@v2.4.1
|
|
|
- with:
|
|
|
- node-version: '14.x'
|
|
|
-
|
|
|
- - name: Cache Node.js modules
|
|
|
- uses: actions/cache@v2
|
|
|
- with:
|
|
|
- path: ~/.npm
|
|
|
- key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
|
- restore-keys: |
|
|
|
- ${{ runner.OS }}-node-
|
|
|
-
|
|
|
- name: Install dependencies
|
|
|
run: |
|
|
|
- npm install -g @project-serum/anchor
|
|
|
+ sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
|
|
|
+ sudo apt-get update && sudo apt-get upgrade && sudo apt-get install -y pkg-config build-essential libudev-dev libssl-dev
|
|
|
+ cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
|
|
|
+ avm install latest
|
|
|
+ avm use latest
|
|
|
+ shell: bash
|
|
|
|
|
|
- name: Build Solana Programs
|
|
|
run: |
|