You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/04/09 07:00:08 UTC

[incubator-nuttx] branch master updated: CI: Add macOS builds

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c14b9c  CI: Add macOS builds
9c14b9c is described below

commit 9c14b9c6e04a96549e10e36492bea4176185bd71
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Apr 9 14:33:16 2020 +0900

    CI: Add macOS builds
    
    This is a sync from testing repo.
---
 .github/workflows/build.yml | 49 ++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 48 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cf37b70..71957fa 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -16,7 +16,7 @@ on:
   pull_request:
 
 jobs:
-  build:
+  build-linux:
     runs-on: ubuntu-18.04
     env:
       DOCKER_BUILDKIT: 1
@@ -65,3 +65,50 @@ jobs:
         run: |
           cd testing
           ./cibuild.sh -x -G testlist/${{matrix.boards}}.dat
+
+  build-macos:
+    runs-on: macos-10.15
+
+    strategy:
+      matrix:
+        boards: [arm-13, mips-riscv-x86-xtensa, sim]
+
+    steps:
+    - name: Checkout nuttx repo
+      uses: actions/checkout@v2
+      with:
+        repository: apache/incubator-nuttx
+        path: nuttx
+        fetch-depth: 0
+
+    - name: Fetch nuttx tags
+      run: |
+        cd nuttx
+        git fetch --tags
+
+    - name: Checkout apps repo
+      uses: actions/checkout@v2
+      with:
+        repository: apache/incubator-nuttx-apps
+        path: apps
+        fetch-depth: 0
+
+    - name: Checkout testing repo
+      uses: actions/checkout@v2
+      with:
+        repository: apache/incubator-nuttx-testing
+        path: testing
+
+    - name: Restore cache
+      id: cache-tools
+      uses: actions/cache@v1
+      env:
+        cache-name: ${{ runner.os }}-cache-tools
+      with:
+        path: prebuilt
+        key: ${{ runner.os }}-tools-${{ hashFiles('./testing/cibuild.sh') }}
+
+    - name: Run builds
+      run: |
+        cd testing
+        ./cibuild.sh -i -x -G testlist/${{matrix.boards}}.dat