Skip to content

Commit 5fc6989

Browse files
committed
Add pull requests to github workflows
1 parent 6593d86 commit 5fc6989

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/cmake-windows.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: "CMake Windows"
33
on:
44
push:
55
branches: [z80]
6+
pull_request:
7+
branches: [z80]
68

79
jobs:
810
build-llvm:
@@ -174,7 +176,7 @@ jobs:
174176
nightly:
175177
runs-on: ubuntu-latest
176178
needs: [build-clang]
177-
if: github.ref == 'refs/heads/z80'
179+
if: github.ref == 'refs/heads/z80' && github.event_name != 'pull_request'
178180

179181
steps:
180182
- name: Download Windows ez80-clang

.github/workflows/cmake.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: "CMake Linux/macOS"
33
on:
44
push:
55
branches: [z80]
6+
pull_request:
7+
branches: [z80]
68

79
jobs:
810
build-llvm:
@@ -362,7 +364,7 @@ jobs:
362364
nightly:
363365
runs-on: ubuntu-latest
364366
needs: [build-clang, test-llvm-z80]
365-
if: github.ref == 'refs/heads/z80'
367+
if: github.ref == 'refs/heads/z80' && github.event_name != 'pull_request'
366368

367369
steps:
368370
- name: Download Ubuntu 22.04 ez80-clang

0 commit comments

Comments
 (0)