ci: reduce number of jobs

build using make and test xcode project generation in the same job
This commit is contained in:
alexey.lysiuk 2023-01-10 16:41:38 +02:00
parent bb09cd33cc
commit a925b96adc

View file

@ -6,7 +6,7 @@ on: [push, pull_request]
jobs: jobs:
build: build:
if: "!contains(github.event.head_commit.message, '[skip build]')" if: "!contains(github.event.head_commit.message, '[skip build]')"
name: ${{ matrix.target }} / ${{ matrix.flavor.name }} name: ${{ matrix.target }}
runs-on: macos-12 runs-on: macos-12
strategy: strategy:
fail-fast: false fail-fast: false
@ -16,23 +16,17 @@ jobs:
Raze, Raze,
PrBoom-Plus PrBoom-Plus
] ]
flavor: [
{
name: Make,
args: ''
},
{
name: Xcode,
args: '--xcode'
}
]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build - name: Build target
run: | run: |
./build.py --target ${{ matrix.target }} ${{ matrix.flavor.args }} ./build.py --target ${{ matrix.target }}
- name: Generate Xcode project
run: |
./build.py --target ${{ matrix.target }}
- name: List Build Directory - name: List Build Directory
if: always() if: always()