Skip to content

Commit 8e3bd8a

Browse files
authored
[ci skip] limit github actions build tests. not run for draft PRs, only test 2 most recent sdks
1 parent 62ad83a commit 8e3bd8a

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/build-linux.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
name: Build on Linux with SDK
22

3-
on: [pull_request, release]
3+
on:
4+
workflow_dispatch:
5+
release:
6+
pull_request:
7+
types: [opened, synchronize, reopened, closed]
48

59
jobs:
10+
fail_if_pull_request_is_draft:
11+
if: github.event.pull_request.draft == true
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Build test is not run for draft PRs
15+
run: exit 1
16+
617
build:
718
strategy:
819
fail-fast: false
920
matrix:
10-
sdk: ["22.6.1", "23.7.3", "24.7.1"]
11-
21+
sdk: ["23.7.3", "24.7.1"] # pick 2 or 3 most recent. "22.6.1", ...
1222
runs-on: ubuntu-latest
13-
1423
steps:
1524
- name: Checkout
1625
uses: actions/checkout@v4

0 commit comments

Comments
 (0)