Skip to content

Commit d5a75be

Browse files
authored
Merge pull request #2357 from pyth-network/devin/1738961031-update-ci-workflow-triggers
ci: update workflow triggers to run on workflow changes and all merges to main
2 parents 099f680 + a01fc38 commit d5a75be

22 files changed

+51
-67
lines changed

.github/workflows/ci-aptos-contract.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
push:
66
branches:
77
- main
8-
paths:
9-
- target_chains/aptos/contracts/**
108

119
name: Aptos Contract
1210

.github/workflows/ci-cosmwasm-contract.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
push:
99
branches:
1010
- main
11-
paths:
12-
- target_chains/cosmwasm/**
13-
- wormhole_attester/sdk/rust/**
1411

1512
env:
1613
CARGO_TERM_COLOR: always

.github/workflows/ci-ethereum-contract.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
push:
77
branches:
88
- main
9-
paths:
10-
- target_chains/ethereum/contracts/**
11-
- governance/xc_admin/packages/xc_admin_common/**
129

1310
name: Ethereum Contract
1411

.github/workflows/ci-fortuna.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ name: Check Fortuna
22

33
on:
44
pull_request:
5-
paths: [apps/fortuna/**]
5+
paths:
6+
- apps/fortuna/**
67
push:
78
branches: [main]
8-
paths: [apps/fortuna/**]
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14+
- uses: Swatinem/rust-cache@v2
15+
with:
16+
workspaces: "apps/fortuna -> target"
1417
- uses: actions-rs/toolchain@v1
1518
with:
1619
profile: minimal

.github/workflows/ci-foundry-test.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
push:
88
branches:
99
- main
10-
paths:
11-
- target_chains/ethereum/sdk/stylus/**
1210
env:
1311
FOUNDRY_PROFILE: ci
1412
jobs:

.github/workflows/ci-fuel-contract.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
push:
88
branches:
99
- main
10-
paths:
11-
- target_chains/fuel/**
1210

1311
env:
1412
CARGO_TERM_COLOR: always
@@ -21,6 +19,9 @@ jobs:
2119
working-directory: target_chains/fuel/contracts/
2220
steps:
2321
- uses: actions/checkout@v2
22+
- uses: Swatinem/rust-cache@v2
23+
with:
24+
workspaces: "target_chains/fuel/contracts -> target"
2425
- name: Install Fuel toolchain
2526
run: |
2627
curl https://install.fuel.network | sh

.github/workflows/ci-hermes-server.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,18 @@ name: Check Hermes Server
22

33
on:
44
pull_request:
5-
paths: [apps/hermes/server/**]
5+
paths:
6+
- apps/hermes/server/**
67
push:
78
branches: [main]
8-
paths: [apps/hermes/server/**]
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14+
- uses: Swatinem/rust-cache@v2
15+
with:
16+
workspaces: "apps/hermes/server -> target"
1417
- uses: actions-rs/toolchain@v1
1518
with:
1619
profile: minimal

.github/workflows/ci-lazer-rust.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
paths:
7-
- lazer/**
86
pull_request:
97
paths:
108
- lazer/**
@@ -23,6 +21,9 @@ jobs:
2321
- uses: actions-rust-lang/setup-rust-toolchain@v1
2422
with:
2523
toolchain: 1.81.0
24+
- uses: Swatinem/rust-cache@v2
25+
with:
26+
workspaces: "lazer -> target"
2627
- name: Install Foundry
2728
uses: foundry-rs/foundry-toolchain@v1
2829
- name: install extra tools

.github/workflows/ci-lazer-sdk-evm.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
paths:
7-
- lazer/contracts/evm/**
86
pull_request:
97
paths:
108
- lazer/contracts/evm/**

.github/workflows/ci-lazer-solana-contract.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
paths:
7-
- lazer/**
86
pull_request:
97
paths:
108
- lazer/**

.github/workflows/ci-message-buffer-idl.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
push:
77
branches:
88
- main
9-
paths:
10-
- pythnet/message_buffer/**
119
jobs:
1210
abi-check:
1311
name: Check Message Buffer IDL files are up to date
@@ -18,6 +16,9 @@ jobs:
1816
steps:
1917
- name: Checkout sources
2018
uses: actions/checkout@v3
19+
- uses: Swatinem/rust-cache@v2
20+
with:
21+
workspaces: "pythnet/message_buffer -> target"
2122
- uses: actions-rs/toolchain@v1
2223
with:
2324
profile: minimal

.github/workflows/ci-near-contract.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ on:
99
push:
1010
branches:
1111
- main
12-
paths:
13-
- target_chains/near/**
14-
- wormhole_attester/sdk/rust/**
15-
- .github/workflows/ci-near-contract.yml
1612

1713
env:
1814
CARGO_TERM_COLOR: always
@@ -26,6 +22,9 @@ jobs:
2622
working-directory: target_chains/near/receiver
2723
steps:
2824
- uses: actions/checkout@v2
25+
- uses: Swatinem/rust-cache@v2
26+
with:
27+
workspaces: "target_chains/near/receiver -> target"
2928
- name: Test
3029
run: ./workspace-test.sh
3130
reproducible-build:
@@ -36,6 +35,9 @@ jobs:
3635
working-directory: target_chains/near/receiver
3736
steps:
3837
- uses: actions/checkout@v2
38+
- uses: Swatinem/rust-cache@v2
39+
with:
40+
workspaces: "target_chains/near/receiver -> target"
3941
- run: sudo apt-get install -y libudev-dev
4042
- run: cargo +stable install --locked [email protected]
4143
- run: cargo near build reproducible-wasm

.github/workflows/ci-remote-executor.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Check Remote Executor
22

33
on:
44
pull_request:
5-
paths: [governance/remote_executor/**]
5+
paths:
6+
- governance/remote_executor/**
67
push:
78
branches: [main]
8-
paths: [governance/remote_executor/**]
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
@@ -18,6 +18,9 @@ jobs:
1818
toolchain: 1.73.0
1919
components: rustfmt, clippy
2020
override: true
21+
- uses: Swatinem/rust-cache@v2
22+
with:
23+
workspaces: "governance/remote_executor -> target"
2124
- name: Install Solana
2225
run: |
2326
sh -c "$(curl -sSfL https://release.solana.com/v1.18.23/install)"

.github/workflows/ci-solana-contract.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ on:
88
push:
99
branches:
1010
- main
11-
paths:
12-
- target_chains/solana/**
13-
- pythnet/pythnet_sdk/**
1411

1512
env:
1613
CARGO_TERM_COLOR: always
@@ -23,6 +20,9 @@ jobs:
2320
working-directory: target_chains/solana
2421
steps:
2522
- uses: actions/checkout@v2
23+
- uses: Swatinem/rust-cache@v2
24+
with:
25+
workspaces: "target_chains/solana -> target"
2626
- uses: actions-rs/toolchain@v1
2727
with:
2828
profile: minimal

.github/workflows/ci-starknet-contract.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ on:
66
push:
77
branches:
88
- main
9-
paths:
10-
- target_chains/starknet/contracts/**
119
jobs:
1210
check:
1311
name: Starknet Foundry tests

.github/workflows/ci-starknet-tools.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: Check Starknet Tools
22

33
on:
44
pull_request:
5-
paths: [target_chains/starknet/tools/**]
5+
paths:
6+
- target_chains/starknet/tools/**
67
push:
78
branches: [main]
8-
paths: [target_chains/starknet/tools/**]
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
@@ -18,6 +18,9 @@ jobs:
1818
components: rustfmt, clippy
1919
override: true
2020
- uses: actions/checkout@v3
21+
- uses: Swatinem/rust-cache@v2
22+
with:
23+
workspaces: "target_chains/starknet/tools/test_vaas -> target"
2124
- name: Install Scarb
2225
uses: software-mansion/setup-scarb@v1
2326
with:

.github/workflows/ci-stylus-check-wasm.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ on:
88
push:
99
branches:
1010
- main
11-
paths:
12-
- target_chains/ethereum/sdk/stylus/**
1311
permissions:
1412
contents: read
1513
concurrency:

.github/workflows/ci-stylus-check.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ on:
1818
push:
1919
branches:
2020
- main
21-
paths:
22-
- target_chains/ethereum/sdk/stylus/**
2321
concurrency:
2422
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2523
cancel-in-progress: true

.github/workflows/ci-stylus-nostd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ on:
1111
push:
1212
branches:
1313
- main
14-
paths:
15-
- target_chains/ethereum/sdk/stylus/**
1614
concurrency:
1715
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1816
cancel-in-progress: true
@@ -37,6 +35,9 @@ jobs:
3735
with:
3836
toolchain: stable
3937
rustflags: ""
38+
- uses: Swatinem/rust-cache@v2
39+
with:
40+
workspaces: "target_chains/ethereum/sdk/stylus -> target"
4041
- name: Add rust targets ${{ matrix.target }}
4142
run: rustup target add ${{ matrix.target }}
4243
- name: Cargo check

.github/workflows/ci-sui-contract.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
push:
66
branches:
77
- main
8-
paths:
9-
- target_chains/sui/contracts/**
108

119
name: Sui Contracts
1210

@@ -19,12 +17,16 @@ jobs:
1917
working-directory: target_chains/sui/contracts/
2018
steps:
2119
- uses: actions/checkout@v3
22-
23-
- name: Update rust
24-
run: rustup update stable
25-
26-
- name: Install Sui CLI
27-
run: cargo install --locked --git https://github.com/MystenLabs/sui.git --rev 041c5f2bae2fe52079e44b70514333532d69f4e6 sui
20+
- uses: actions-rs/toolchain@v1
21+
with:
22+
profile: minimal
23+
toolchain: 1.77.0
24+
override: true
25+
- uses: taiki-e/cache-cargo-install-action@v2
26+
with:
27+
tool: sui
28+
git: https://github.com/MystenLabs/sui.git
29+
rev: 041c5f2bae2fe52079e44b70514333532d69f4e6
2830

2931
- name: Run tests
3032
run: sui move test

.github/workflows/ci-turbo-build.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ on:
1111
- "**/tsconfig.json"
1212
push:
1313
branches: [main]
14-
paths:
15-
- "**.tsx?"
16-
- "**.jsx?"
17-
- "**.json"
18-
- "**.sol"
19-
- "**/package.json"
20-
- "**/package-lock.json"
21-
- "**/tsconfig.json"
2214
jobs:
2315
build:
2416
runs-on: ubuntu-latest

.github/workflows/ci-turbo-test.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@ on:
1111
- "**/tsconfig.json"
1212
push:
1313
branches: [main]
14-
paths:
15-
- "**.tsx?"
16-
- "**.jsx?"
17-
- "**.json"
18-
- "**.sol"
19-
- "**/package.json"
20-
- "**/package-lock.json"
21-
- "**/tsconfig.json"
2214
jobs:
2315
test:
2416
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)