2020-02-16 11:00:25 +00:00
|
|
|
name: Continuous Integration
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-06-20 13:17:56 +00:00
|
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
2020-02-16 11:00:25 +00:00
|
|
|
name: ${{ matrix.config.name }}
|
2020-06-01 07:03:31 +00:00
|
|
|
runs-on: "macos-latest"
|
2020-02-16 11:00:25 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
config:
|
|
|
|
- {
|
|
|
|
name: "GZDoom"
|
|
|
|
}
|
|
|
|
- {
|
|
|
|
name: "Raze"
|
|
|
|
}
|
2020-05-11 13:37:20 +00:00
|
|
|
- {
|
2020-06-14 08:00:49 +00:00
|
|
|
name: "PrBoom-Plus",
|
|
|
|
bundle: "Launcher"
|
2020-05-11 13:37:20 +00:00
|
|
|
}
|
2020-02-16 11:00:25 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Configure
|
|
|
|
run: |
|
|
|
|
echo "::set-env name=PROJECT_NAME_LOWER::$(echo ${{ matrix.config.name }} | tr '[:upper:]' '[:lower:]')"
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
2020-04-26 08:42:30 +00:00
|
|
|
./build.py --target ${PROJECT_NAME_LOWER}
|
2020-02-16 11:00:25 +00:00
|
|
|
|
|
|
|
- name: Create Package
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2020-06-14 08:00:49 +00:00
|
|
|
if [ -z ${{ matrix.config.bundle }} ]; then
|
|
|
|
BUNDLE_FILENAME=${PROJECT_NAME_LOWER}
|
|
|
|
else
|
|
|
|
BUNDLE_FILENAME=${{ matrix.config.bundle }}
|
|
|
|
fi
|
2020-02-16 11:00:25 +00:00
|
|
|
mkdir package
|
2020-06-14 08:00:49 +00:00
|
|
|
cp -r "build/${PROJECT_NAME_LOWER}/make/${BUNDLE_FILENAME}.app" package
|
2020-02-16 11:00:25 +00:00
|
|
|
|
|
|
|
- name: Upload Package
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
path: package
|
|
|
|
name: ${{ matrix.config.name }}
|