Skip to content

Commit a592c6b

Browse files
authored
fix: publish workflow (#1532)
* dry run * check * Fix workflows * rexport price feed message
1 parent 31483a9 commit a592c6b

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

.github/workflows/publish-pyth-solana-receiver-state.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ jobs:
1111
steps:
1212
- name: Checkout sources
1313
uses: actions/checkout@v2
14+
- name: Install Rust
15+
uses: actions-rs/toolchain@v1
16+
with:
17+
toolchain: stable
18+
default: true
19+
profile: minimal
1420

15-
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
21+
- run: cargo +stable-x86_64-unknown-linux-gnu publish --token ${CARGO_REGISTRY_TOKEN}
1622
env:
1723
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1824
working-directory: "target_chains/solana/pyth_solana_receiver_sdk"

target_chains/solana/pyth_solana_receiver_sdk/src/price_update.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
pub use pythnet_sdk::messages::{
2+
FeedId,
3+
PriceFeedMessage,
4+
};
15
use {
26
crate::{
37
check,
@@ -7,10 +11,6 @@ use {
711
borsh::BorshSchema,
812
*,
913
},
10-
pythnet_sdk::messages::{
11-
FeedId,
12-
PriceFeedMessage,
13-
},
1414
solana_program::pubkey::Pubkey,
1515
};
1616

0 commit comments

Comments
 (0)