diff --git a/.github/targets/native_btshell/pkg.yml b/.github/targets_native/native_btshell/pkg.yml similarity index 100% rename from .github/targets/native_btshell/pkg.yml rename to .github/targets_native/native_btshell/pkg.yml diff --git a/.github/targets/native_btshell/syscfg.yml b/.github/targets_native/native_btshell/syscfg.yml similarity index 100% rename from .github/targets/native_btshell/syscfg.yml rename to .github/targets_native/native_btshell/syscfg.yml diff --git a/.github/targets/native_btshell/target.yml b/.github/targets_native/native_btshell/target.yml similarity index 100% rename from .github/targets/native_btshell/target.yml rename to .github/targets_native/native_btshell/target.yml diff --git a/.github/workflows/build_targets.yml b/.github/workflows/build_targets.yml index 6d4a1e735..0040748a0 100644 --- a/.github/workflows/build_targets.yml +++ b/.github/workflows/build_targets.yml @@ -23,7 +23,11 @@ on: [push, pull_request] jobs: targets: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 @@ -33,6 +37,7 @@ jobs: with: release: '12.2.Rel1' - name: Install Dependencies + if: matrix.os == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y gcc-multilib @@ -48,6 +53,15 @@ jobs: git clone --depth=1 https://github.com/mcu-tools/mcuboot.git repos/mcuboot git clone --depth=1 https://github.com/apache/mynewt-mcumgr repos/apache-mynewt-mcumgr git clone --depth=1 https://github.com/hathach/tinyusb.git repos/tinyusb - ln -s .github/targets ci_targets - name: Build targets - run: ls ci_targets | xargs -n1 sh -c 'echo "Testing $0"; newt build -q $0' + shell: bash + run: | + cp -r .github/targets ci_targets + ls ci_targets | xargs -n1 sh -c 'echo "Testing $0"; newt build -q $0' + rm -rf ci_targets + - name: Build native targets + if: matrix.os == 'ubuntu-latest' + run: | + cp -r .github/targets_native ci_targets + ls ci_targets | xargs -n1 sh -c 'echo "Testing $0"; newt build -q $0' + rm -rf ci_targets