Skip to content

Commit

Permalink
Build test artifact without mainnet-beta feature (#80)
Browse files Browse the repository at this point in the history
Should fix CI
  • Loading branch information
ebatsell authored Aug 21, 2024
1 parent 10e887a commit 5bc95ae
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ jobs:

- run: solana-verify build --library-name jito_steward -- --features mainnet-beta

# create build for tests
- run: cargo build-sbf --manifest-path programs/steward/Cargo.toml --sbf-out-dir target/test

# upload the IDL and verified build
- name: Upload validator_history.so
uses: actions/upload-artifact@v4
Expand All @@ -107,6 +110,11 @@ jobs:
with:
name: jito_steward.so
path: target/deploy/jito_steward.so
- name: Upload test jito_steward.so
uses: actions/upload-artifact@v4
with:
name: jito_steward_test.so
path: target/test/jito_steward.so
- name: Upload Validator History IDL
uses: actions/upload-artifact@v4
with:
Expand Down Expand Up @@ -137,8 +145,11 @@ jobs:
path: target/deploy/
- uses: actions/download-artifact@v4
with:
name: jito_steward.so
path: target/deploy/
name: jito_steward_test.so
path: target/test/
- name: Rename test artifact to jito_steward.so
run: mv ./target/test/jito_steward.so ./target/deploy/jito_steward.so
shell: bash
- name: cargo test
run: cargo test --package tests --all-features --color auto
shell: bash
Expand Down

0 comments on commit 5bc95ae

Please sign in to comment.