dfhack/.github/workflows/build.yml

54 lines
1.1 KiB
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-07-30 20:36:12 -06:00
secrets: inherit
2023-07-23 02:46:33 -06:00
package-linux:
name: Linux package
uses: ./.github/workflows/build-linux.yml
with:
2023-07-31 02:49:02 -06:00
artifact-name: dfhack-linux64-build
append-date-and-hash: true
cache-id: release
stonesense: true
docs: true
secrets: inherit
package-win64:
2023-07-31 02:49:02 -06:00
name: Win64 package
2023-07-30 22:04:52 -06:00
uses: ./.github/workflows/build-windows.yml
with:
2023-07-31 02:49:02 -06:00
artifact-name: dfhack-win64-build
2023-07-30 22:04:52 -06:00
append-date-and-hash: true
2023-07-31 03:50:32 -06:00
cache-id: release
2023-08-03 05:13:06 -06:00
stonesense: true
docs: true
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:
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
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