Skip to content

Commit c9a9d13

Browse files
committed
ci: use the package name app_server instead of app-server & only run the workflow when a push is made on main branch, PR is closed and merged on main branch
1 parent 5f0a4ee commit c9a9d13

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/CompileTimeDelta.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Save cargo build timing information
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [closed]
9+
branches:
10+
- main
411

512
jobs:
613
linux-ubuntu:
@@ -9,14 +16,15 @@ jobs:
916
env:
1017
CARGO_TERM_COLOR: always
1118

19+
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
1220
steps:
1321
- name: Checkout main repo
1422
uses: actions/checkout@v4
1523
with:
1624
path: debate-map
1725
- name: Build Timing
1826
working-directory: debate-map
19-
run: cargo build --package app-server --timings
27+
run: cargo build --package app_server --timings
2028

2129
- name: Get commit hash
2230
working-directory: debate-map

0 commit comments

Comments
 (0)