Skip to content

Commit

Permalink
Only test program
Browse files Browse the repository at this point in the history
  • Loading branch information
jasl committed Jun 23, 2024
1 parent 3f72439 commit b2b59ed
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,6 @@ env:
target/
jobs:
build_programs:
name: Build programs
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
with:
node: ${{ env.NODE_VERSION }}
solana: ${{ env.SOLANA_VERSION }}
- name: Cache cargo dependencies
uses: actions/cache@v4
with:
path: ${{ env.CARGO_CACHE }}
key: ${{ runner.os }}-cargo-programs-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-programs
- name: Build programs
run: pnpm programs:build
- name: Upload program builds
uses: actions/upload-artifact@v4
with:
name: program-builds
path: ./target/deploy/*.so
if-no-files-found: error
- name: Save all builds for clients
uses: actions/cache/save@v4
with:
path: ./**/*.so
key: ${{ runner.os }}-builds-${{ github.sha }}

test_programs:
name: Test programs
runs-on: ubuntu-latest
Expand All @@ -71,6 +40,37 @@ jobs:
- name: Test programs
run: pnpm programs:test

# build_programs:
# name: Build programs
# runs-on: ubuntu-latest
# steps:
# - name: Git checkout
# uses: actions/checkout@v4
# - name: Setup environment
# uses: ./.github/actions/setup
# with:
# node: ${{ env.NODE_VERSION }}
# solana: ${{ env.SOLANA_VERSION }}
# - name: Cache cargo dependencies
# uses: actions/cache@v4
# with:
# path: ${{ env.CARGO_CACHE }}
# key: ${{ runner.os }}-cargo-programs-${{ hashFiles('**/Cargo.lock') }}
# restore-keys: ${{ runner.os }}-cargo-programs
# - name: Build programs
# run: pnpm programs:build
# - name: Upload program builds
# uses: actions/upload-artifact@v4
# with:
# name: program-builds
# path: ./target/deploy/*.so
# if-no-files-found: error
# - name: Save all builds for clients
# uses: actions/cache/save@v4
# with:
# path: ./**/*.so
# key: ${{ runner.os }}-builds-${{ github.sha }}

# generate_idls:
# name: Check IDL generation
# needs: build_programs
Expand Down

0 comments on commit b2b59ed

Please sign in to comment.