mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-21 19:41:15 +00:00
add continuous integration via github actions
This commit is contained in:
parent
f74f7ca69c
commit
743df55b08
1 changed files with 41 additions and 0 deletions
41
.github/workflows/continuous_integration.yml
vendored
Normal file
41
.github/workflows/continuous_integration.yml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
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: |
|
||||
./build_${PROJECT_NAME_LOWER}
|
||||
|
||||
- name: Create Package
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir package
|
||||
cp -r ${PROJECT_NAME_LOWER}/build/${PROJECT_NAME_LOWER}.app package
|
||||
|
||||
- name: Upload Package
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
path: package
|
||||
name: ${{ matrix.config.name }}
|
Loading…
Reference in a new issue