mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 20:11:51 +00:00
5a3eb7c36f
[skip ci]
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
name: Continuous Integration
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
name: ${{ matrix.config.name }}
|
|
runs-on: "macos-latest"
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
config:
|
|
- {
|
|
name: "GZDoom"
|
|
}
|
|
- {
|
|
name: "Raze"
|
|
}
|
|
- {
|
|
name: "PrBoom-Plus",
|
|
bundle: "Launcher"
|
|
}
|
|
|
|
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: |
|
|
./build.py --target ${PROJECT_NAME_LOWER}
|
|
|
|
- name: Create Package
|
|
shell: bash
|
|
run: |
|
|
if [ -z ${{ matrix.config.bundle }} ]; then
|
|
BUNDLE_FILENAME=${PROJECT_NAME_LOWER}
|
|
else
|
|
BUNDLE_FILENAME=${{ matrix.config.bundle }}
|
|
fi
|
|
mkdir package
|
|
cp -r "build/${PROJECT_NAME_LOWER}/make/${BUNDLE_FILENAME}.app" package
|
|
|
|
- name: Upload Package
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
path: package
|
|
name: ${{ matrix.config.name }}
|