Browse Source

Update anchor.yml

Valentin Madrid 2 years ago
parent
commit
cab3ee6440
1 changed files with 6 additions and 14 deletions
  1. 6 14
      .github/workflows/anchor.yml

+ 6 - 14
.github/workflows/anchor.yml

@@ -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: |