Skip to content

Commit

Permalink
Merge pull request #285 from arkedge/feature/matrix-build-examples
Browse files Browse the repository at this point in the history
Use matrix job to build multiple example users with same config
  • Loading branch information
sksat authored Jan 11, 2024
2 parents d415d3d + 5f4bcf2 commit f69dceb
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,17 @@ on:
pull_request:

jobs:
mobc:
name: mobc
uses: arkedge/workflows-c2a/.github/workflows/[email protected]
with:
c2a_dir: examples/mobc
c2a_custom_setup: |
cd ../..
pwd
ls -l
if [ $RUNNER_OS = 'Windows' ]; then
cmd "/C setup.bat"
else
./setup.sh
fi
build_msvc: true
build_as_cxx: true
build:
strategy:
fail-fast: false
matrix:
user:
- mobc
- subobc

subobc:
name: subobc
uses: arkedge/workflows-c2a/.github/workflows/[email protected]
with:
c2a_dir: examples/subobc
c2a_dir: examples/${{ matrix.user }}
c2a_custom_setup: |
cd ../..
pwd
Expand Down

0 comments on commit f69dceb

Please sign in to comment.