Skip to content

Commit 776d06f

Browse files
committed
ci(coprocessor): fix broken paths
1 parent 1a9677a commit 776d06f

File tree

2 files changed

+25
-30
lines changed

2 files changed

+25
-30
lines changed

.github/workflows/coprocessor-cargo-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ jobs:
7272
with:
7373
node-version: 20.x
7474

75-
- run: cp ./contracts/.env.example ./contracts/.env
76-
- run: npm --prefix ./contracts ci --include=optional
77-
- run: "cd contracts && npm install && npx hardhat compile"
75+
- run: cp ./host-contracts/.env.example ./host-contracts/.env
76+
- run: npm --prefix ./host-contracts ci --include=optional
77+
- run: "cd host-contracts && npm install && npx hardhat compile"
7878

7979
- name: Run tests
8080
run: |

.github/workflows/coprocessor-gpu-tests.yml

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Compile and test fhevm-backend on a single L40 GPU, on hyperstack
1+
# Compile and test Coprocessor on a single L40 GPU, on hyperstack
22
name: Coprocessor GPU backend tests (L40)
33

44
env:
@@ -20,25 +20,21 @@ on:
2020
- main
2121

2222
jobs:
23-
should-run:
24-
runs-on: ubuntu-latest
23+
check-changes:
2524
permissions:
26-
pull-requests: read
25+
actions: 'read'
26+
contents: 'read'
27+
pull-requests: 'read'
28+
runs-on: ubuntu-latest
2729
outputs:
28-
gpu_test: ${{ env.IS_PULL_REQUEST == 'false' || steps.changed-files.outputs.gpu_any_changed }}
30+
changes-coprocessor-gpu: ${{ steps.filter.outputs.coprocessor-gpu }}
2931
steps:
30-
- name: Checkout fhevm-backend
31-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32-
with:
33-
fetch-depth: 0
34-
persist-credentials: 'false'
35-
36-
- name: Check for file changes
37-
id: changed-files
38-
uses: tj-actions/changed-files@dcc7a0cba800f454d79fff4b993e8c3555bcc0a8
32+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
34+
id: filter
3935
with:
40-
files_yaml: |
41-
gpu:
36+
filters: |
37+
coprocessor-gpu:
4238
- coprocessor/fhevm-engine/Cargo.toml
4339
- coprocessor/fhevm-engine/coprocessor/Cargo.toml
4440
- coprocessor/fhevm-engine/coprocessor/build.rs
@@ -50,14 +46,13 @@ jobs:
5046
- coprocessor/fhevm-engine/scheduler/Cargo.toml
5147
- coprocessor/fhevm-engine/scheduler/build.rs
5248
- coprocessor/proto/**
53-
- '.github/workflows/coprocessor_gpu-tests.yml'
49+
- '.github/workflows/coprocessor-gpu-tests.yml'
5450
- ci/slab.toml
5551
5652
setup-instance:
57-
name: Setup instance (fhevm-backend GPU tests - L40)
58-
needs: should-run
59-
if: github.event_name == 'workflow_dispatch' ||
60-
needs.should-run.outputs.gpu_test == 'true'
53+
name: Setup instance (Coprocessor GPU tests - L40)
54+
needs: check-changes
55+
if: ${{ github.event_name == 'workflow_dispatch' || needs.check-changes.outputs.changes-coprocessor-gpu == 'true' }}
6156
runs-on: ubuntu-latest
6257
permissions:
6358
contents: read
@@ -76,9 +71,9 @@ jobs:
7671
backend: hyperstack
7772
profile: l40
7873

79-
fhevm-backend-gpu:
80-
name: fhevm-backend GPU tests - L40
81-
needs: [ should-run, setup-instance ]
74+
coprocessor-gpu:
75+
name: Coprocessor GPU tests - L40
76+
needs: [ check-changes, setup-instance ]
8277
if: github.event_name != 'pull_request' ||
8378
(github.event_name == 'pull_request' && needs.setup-instance.result != 'skipped')
8479
concurrency:
@@ -102,7 +97,7 @@ jobs:
10297
sudo apt-get install -y git-lfs
10398
git lfs install
10499
105-
- name: Checkout fhevm-backend
100+
- name: Checkout fhevm
106101
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
107102
with:
108103
persist-credentials: 'false'
@@ -165,9 +160,9 @@ jobs:
165160

166161

167162
teardown-instance:
168-
name: Teardown instance (fhevm-backend-gpu L40 test)
163+
name: Teardown instance (coprocessor-gpu L40 test)
169164
if: ${{ always() && needs.setup-instance.result == 'success' }}
170-
needs: [ setup-instance, fhevm-backend-gpu ]
165+
needs: [ setup-instance, coprocessor-gpu ]
171166
runs-on: ubuntu-latest
172167
permissions:
173168
contents: read

0 commit comments

Comments
 (0)