2020-02-16 11:00:25 +00:00
|
|
|
name: Continuous Integration
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: ${{ matrix.config.name }}
|
|
|
|
runs-on: "macOS"
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
config:
|
|
|
|
- {
|
|
|
|
name: "GZDoom"
|
|
|
|
}
|
|
|
|
- {
|
|
|
|
name: "Raze"
|
|
|
|
}
|
|
|
|
|
|
|
|
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: |
|
|
|
|
mkdir package
|
2020-04-25 10:05:12 +00:00
|
|
|
cp -r build/${PROJECT_NAME_LOWER}/make/${PROJECT_NAME_LOWER}.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 }}
|