Merge pull request #2840 from pyth-network/pyth-stylus-parse-updates #586
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test Near Contract | |
| on: | |
| pull_request: | |
| paths: | |
| - target_chains/near/** | |
| - wormhole_attester/sdk/rust/** | |
| - .github/workflows/ci-near-contract.yml | |
| push: | |
| branches: | |
| - main | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Workspace test | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: target_chains/near/receiver | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| cache-workspaces: "target_chains/near/receiver -> target" | |
| - name: Test | |
| run: ./workspace-test.sh | |
| reproducible-build: | |
| name: Reproducible build | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: target_chains/near/receiver | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions-rust-lang/setup-rust-toolchain@v1 | |
| with: | |
| cache-workspaces: "target_chains/near/receiver -> target" | |
| - run: sudo apt-get update && sudo apt-get install -y libudev-dev | |
| - run: cargo install --locked [email protected] | |
| - run: cargo near build reproducible-wasm | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pyth_near.wasm | |
| path: target_chains/near/receiver/target/near/pyth_near.wasm | |
| retention-days: 90 |