dfhack/.github/workflows/build.yml

43 lines
886 B
YAML

name: Build
2020-04-06 17:57:20 -06:00
on: [push, pull_request]
jobs:
2023-08-03 02:23:36 -06:00
test:
uses: ./.github/workflows/test.yml
2023-08-06 00:25:10 -06:00
with:
dfhack_ref: ${{ github.ref }}
2023-07-30 20:36:12 -06:00
secrets: inherit
2023-07-23 02:46:33 -06:00
2023-08-05 01:58:09 -06:00
package:
uses: ./.github/workflows/package.yml
2023-07-30 22:04:52 -06:00
with:
2023-08-05 01:58:09 -06:00
dfhack_ref: ${{ github.ref }}
2023-07-30 22:04:52 -06:00
secrets: inherit
2020-10-06 22:28:51 -06:00
docs:
2023-07-30 20:36:12 -06:00
uses: ./.github/workflows/build-linux.yml
with:
2023-08-06 00:25:10 -06:00
dfhack_ref: ${{ github.ref }}
2023-07-30 20:36:12 -06:00
platform-files: false
common-files: false
docs: true
secrets: inherit
2020-10-06 22:28:51 -06:00
2020-04-10 21:46:19 -06:00
lint:
2023-08-03 01:25:20 -06:00
uses: ./.github/workflows/lint.yml
2023-08-06 00:25:10 -06:00
with:
dfhack_ref: ${{ github.ref }}
2023-08-03 01:25:20 -06:00
secrets: inherit
2020-04-11 00:22:12 -06:00
check-pr:
runs-on: ubuntu-latest
2020-04-11 00:24:40 -06:00
if: github.event_name == 'pull_request'
2020-04-11 00:22:12 -06:00
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