Skip to content
Merged
3 changes: 1 addition & 2 deletions .github/workflows/ci-aptos-contract.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
on:
pull_request:
paths:
- .github/workflows/ci-aptos-contract.yml
- target_chains/aptos/contracts/**
push:
branches:
- main
paths:
- target_chains/aptos/contracts/**

name: Aptos Contract

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/ci-cosmwasm-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ name: Test CosmWasm Contract
on:
pull_request:
paths:
- .github/workflows/ci-cosmwasm-contract.yml
- target_chains/cosmwasm/**
- wormhole_attester/sdk/rust/**
push:
branches:
- main
paths:
- target_chains/cosmwasm/**
- wormhole_attester/sdk/rust/**

env:
CARGO_TERM_COLOR: always
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/ci-ethereum-contract.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
on:
pull_request:
paths:
- .github/workflows/ci-ethereum-contract.yml
- target_chains/ethereum/contracts/**
- governance/xc_admin/packages/xc_admin_common/**
push:
branches:
- main
paths:
- target_chains/ethereum/contracts/**
- governance/xc_admin/packages/xc_admin_common/**

name: Ethereum Contract

Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci-fortuna.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ name: Check Fortuna

on:
pull_request:
paths: [apps/fortuna/**]
paths:
- .github/workflows/ci-fortuna.yml
- apps/fortuna/**
push:
branches: [main]
paths: [apps/fortuna/**]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "apps/fortuna -> target"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-foundry-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ name: stylus-foundry-test
on:
pull_request:
paths:
- .github/workflows/ci-foundry-test.yml
- target_chains/ethereum/sdk/stylus/**
push:
branches:
- main
paths:
- target_chains/ethereum/sdk/stylus/**
env:
FOUNDRY_PROFILE: ci
jobs:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci-fuel-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ name: Test Fuel Contract
on:
pull_request:
paths:
- .github/workflows/ci-fuel-contract.yml
- target_chains/fuel/**
push:
branches:
- main
paths:
- target_chains/fuel/**

env:
CARGO_TERM_COLOR: always
Expand All @@ -21,6 +20,9 @@ jobs:
working-directory: target_chains/fuel/contracts/
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/fuel/contracts -> target"
- name: Install Fuel toolchain
run: |
curl https://install.fuel.network | sh
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci-hermes-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ name: Check Hermes Server

on:
pull_request:
paths: [apps/hermes/server/**]
paths:
- .github/workflows/ci-hermes-server.yml
- apps/hermes/server/**
push:
branches: [main]
paths: [apps/hermes/server/**]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "apps/hermes/server -> target"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci-lazer-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ on:
push:
branches:
- main
paths:
- lazer/**
pull_request:
paths:
- .github/workflows/ci-lazer-rust.yml
- lazer/**

jobs:
Expand All @@ -23,6 +22,9 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
- uses: Swatinem/rust-cache@v2
with:
workspaces: "lazer -> target"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: install extra tools
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-lazer-sdk-evm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ on:
push:
branches:
- main
paths:
- lazer/contracts/evm/**
pull_request:
paths:
- .github/workflows/ci-lazer-sdk-evm.yml
- lazer/contracts/evm/**

jobs:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-lazer-solana-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ on:
push:
branches:
- main
paths:
- lazer/**
pull_request:
paths:
- .github/workflows/ci-lazer-solana-contract.yml
- lazer/**

jobs:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci-message-buffer-idl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: Message Buffer IDL Check
on:
pull_request:
paths:
- .github/workflows/ci-message-buffer-idl.yml
- pythnet/message_buffer/**
push:
branches:
- main
paths:
- pythnet/message_buffer/**
jobs:
abi-check:
name: Check Message Buffer IDL files are up to date
Expand All @@ -18,6 +17,9 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
workspaces: "pythnet/message_buffer -> target"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/ci-near-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ on:
push:
branches:
- main
paths:
- target_chains/near/**
- wormhole_attester/sdk/rust/**
- .github/workflows/ci-near-contract.yml

env:
CARGO_TERM_COLOR: always
Expand All @@ -26,6 +22,9 @@ jobs:
working-directory: target_chains/near/receiver
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/near/receiver -> target"
- name: Test
run: ./workspace-test.sh
reproducible-build:
Expand All @@ -36,6 +35,9 @@ jobs:
working-directory: target_chains/near/receiver
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/near/receiver -> target"
- run: sudo apt-get install -y libudev-dev
- run: cargo +stable install --locked [email protected]
- run: cargo near build reproducible-wasm
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci-remote-executor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Check Remote Executor

on:
pull_request:
paths: [governance/remote_executor/**]
paths:
- .github/workflows/ci-remote-executor.yml
- governance/remote_executor/**
push:
branches: [main]
paths: [governance/remote_executor/**]
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -18,6 +19,9 @@ jobs:
toolchain: 1.73.0
components: rustfmt, clippy
override: true
- uses: Swatinem/rust-cache@v2
with:
workspaces: "governance/remote_executor -> target"
- name: Install Solana
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.18.23/install)"
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ci-solana-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ name: Test Solana Contract
on:
pull_request:
paths:
- .github/workflows/ci-solana-contract.yml
- target_chains/solana/**
- pythnet/pythnet_sdk/**
push:
branches:
- main
paths:
- target_chains/solana/**
- pythnet/pythnet_sdk/**

env:
CARGO_TERM_COLOR: always
Expand All @@ -23,6 +21,9 @@ jobs:
working-directory: target_chains/solana
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/solana -> target"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-starknet-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ name: Starknet contract
on:
pull_request:
paths:
- .github/workflows/ci-starknet-contract.yml
- target_chains/starknet/contracts/**
push:
branches:
- main
paths:
- target_chains/starknet/contracts/**
jobs:
check:
name: Starknet Foundry tests
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/ci-starknet-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ name: Check Starknet Tools

on:
pull_request:
paths: [target_chains/starknet/tools/**]
paths:
- .github/workflows/ci-starknet-tools.yml
- target_chains/starknet/tools/**
push:
branches: [main]
paths: [target_chains/starknet/tools/**]
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -18,6 +19,9 @@ jobs:
components: rustfmt, clippy
override: true
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/starknet/tools/test_vaas -> target"
- name: Install Scarb
uses: software-mansion/setup-scarb@v1
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-stylus-check-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ name: stylus-check-wasm
on:
pull_request:
paths:
- .github/workflows/ci-stylus-check-wasm.yml
- target_chains/ethereum/sdk/stylus/**
push:
branches:
- main
paths:
- target_chains/ethereum/sdk/stylus/**
permissions:
contents: read
concurrency:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/ci-stylus-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ permissions:
on:
pull_request:
paths:
- .github/workflows/ci-stylus-check.yml
- target_chains/ethereum/sdk/stylus/**
push:
branches:
- main
paths:
- target_chains/ethereum/sdk/stylus/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci-stylus-nostd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ permissions:
on:
pull_request:
paths:
- .github/workflows/ci-stylus-nostd.yml
- target_chains/ethereum/sdk/stylus/**
push:
branches:
- main
paths:
- target_chains/ethereum/sdk/stylus/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand All @@ -37,6 +36,9 @@ jobs:
with:
toolchain: stable
rustflags: ""
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/ethereum/sdk/stylus -> target"
- name: Add rust targets ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}
- name: Cargo check
Expand Down
Loading
Loading