Skip to content

Commit

Permalink
CI: Add macOS builds
Browse files Browse the repository at this point in the history
This is a sync from testing repo.
  • Loading branch information
yamt authored and xiaoxiang781216 committed Apr 9, 2020
1 parent ce3a237 commit 9c14b9c
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
pull_request:

jobs:
build:
build-linux:
runs-on: ubuntu-18.04
env:
DOCKER_BUILDKIT: 1
Expand Down Expand Up @@ -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

0 comments on commit 9c14b9c

Please sign in to comment.