You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ja...@apache.org on 2023/01/23 17:42:16 UTC
[mynewt-core] branch master updated: ci: Run tests on Windows and Mac
This is an automated email from the ASF dual-hosted git repository.
janc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push:
new 6b97880ec ci: Run tests on Windows and Mac
6b97880ec is described below
commit 6b97880ec67e37b6f16d86228541cf14c157f062
Author: Szymon Janc <sz...@codecoup.pl>
AuthorDate: Mon Jan 23 09:29:20 2023 +0100
ci: Run tests on Windows and Mac
Use matrix to execute builds on all suppored OSes.
---
.github/test_build_blinky.sh | 5 +++++
.github/workflows/build_blinky.yml | 8 ++++++--
.github/workflows/build_targets.yml | 7 +++++--
3 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/.github/test_build_blinky.sh b/.github/test_build_blinky.sh
index cb60112d8..482ff1b8b 100644
--- a/.github/test_build_blinky.sh
+++ b/.github/test_build_blinky.sh
@@ -24,6 +24,11 @@ IGNORED_BSPS="ci40 dialog_cmac embarc_emsk hifive1 native-armv7 native-mips\
olimex-pic32-emz64 olimex-pic32-hmz144 pic32mx470_6lp_clicker\
pic32mz2048_wi-fire"
+# native is supported only on Linux (mind the space)
+if [ $RUNNER_OS != "Linux" ]; then
+ IGNORED_BSPS+=" native"
+fi
+
for bsp in ${BSPS}; do
# NOTE: do not remove the spaces around IGNORED_BSPS; it's required to
# match against the first and last entries
diff --git a/.github/workflows/build_blinky.yml b/.github/workflows/build_blinky.yml
index 3ff8bdae9..3d09c2e6a 100644
--- a/.github/workflows/build_blinky.yml
+++ b/.github/workflows/build_blinky.yml
@@ -23,7 +23,10 @@ on: [push, pull_request]
jobs:
blinky:
- runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
@@ -33,6 +36,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
@@ -45,6 +49,6 @@ jobs:
cp .github/project.yml project.yml
newt upgrade --shallow=1
git clone https://github.com/apache/mynewt-blinky.git /tmp/blinky
- ln -s /tmp/blinky/apps/blinky/ apps/blinky
+ cp -r /tmp/blinky/apps/blinky/ apps/blinky
- name: Build Blinky
run: bash .github/test_build_blinky.sh
diff --git a/.github/workflows/build_targets.yml b/.github/workflows/build_targets.yml
index d05d930d7..3681c0fb6 100644
--- a/.github/workflows/build_targets.yml
+++ b/.github/workflows/build_targets.yml
@@ -23,7 +23,10 @@ on: [push, pull_request]
jobs:
targets:
- runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
@@ -40,6 +43,6 @@ jobs:
run: |
cp .github/project.yml project.yml
newt upgrade --shallow=1
- ln -s .github/targets ci_targets
+ cp -r .github/targets ci_targets
- name: Build targets
run: ls ci_targets | xargs -n1 sh -c 'echo "Testing $0"; newt build -q $0'