-
Notifications
You must be signed in to change notification settings - Fork 480
46 lines (40 loc) · 1.04 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build
on: [push, pull_request]
jobs:
test:
uses: ./.github/workflows/test.yml
with:
dfhack_repo: ${{ github.repository }}
dfhack_ref: ${{ github.ref }}
secrets: inherit
package:
uses: ./.github/workflows/package.yml
with:
dfhack_repo: ${{ github.repository }}
dfhack_ref: ${{ github.ref }}
secrets: inherit
docs:
uses: ./.github/workflows/build-linux.yml
with:
dfhack_repo: ${{ github.repository }}
dfhack_ref: ${{ github.ref }}
platform-files: false
common-files: false
docs: true
secrets: inherit
lint:
uses: ./.github/workflows/lint.yml
with:
dfhack_repo: ${{ github.repository }}
dfhack_ref: ${{ github.ref }}
secrets: inherit
check-pr:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- name: Check that PR is based on develop branch
env:
BASE_BRANCH: ${{ github.base_ref }}
run: |
echo "PR base branch: $BASE_BRANCH"
test "$BASE_BRANCH" = develop