diff options
author | Jiacheng Guo <gjc@google.com> | 2020-05-28 03:30:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 12:30:16 -0700 |
commit | 19d6086bb6d1cb36103da2a65a371d91acc8f72f (patch) | |
tree | bbc00a4c6725aa13466bc17c554419cfbd802608 /.github/workflows/build.yml | |
parent | fdba1c75479df2e4a373fb948f587c991ee31e3b (diff) | |
download | ot-br-posix-19d6086bb6d1cb36103da2a65a371d91acc8f72f.tar.gz |
[continuous-integration] migrate build checks to github actions (#438)
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r-- | .github/workflows/build.yml | 60 |
1 files changed, 59 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f667819..12805561 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,7 +60,7 @@ jobs: submodules: true - name: Check env: - OTBR_MDNS: matrix.mdns + OTBR_MDNS: ${{ matrix.mdns }} run: > docker run --rm -v $PWD:/build/ot-br-posix openthread/android-trusty bash -c "BUILD_TARGET=android-check ot-br-posix/tests/scripts/bootstrap.sh && \ @@ -79,3 +79,61 @@ jobs: run: tests/scripts/bootstrap.sh - name: Build run: tests/scripts/check-raspbian + + check: + runs-on: ubuntu-18.04 + strategy: + matrix: + mdns: ["mDNSResponder", ""] + env: + BUILD_TARGET: check + OTBR_MDNS: ${{ matrix.mdns }} + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Bootstrap + run: tests/scripts/bootstrap.sh + - name: Run + run: script/test build check + + script-check: + runs-on: ubuntu-18.04 + env: + BUILD_TARGET: script-check + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Bootstrap + run: tests/scripts/bootstrap.sh + - name: Run + run: tests/scripts/check-scripts + + scan-build: + runs-on: ubuntu-18.04 + env: + BUILD_TARGET: scan-build + CC: clang + CXX: clang++ + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Bootstrap + run: tests/scripts/bootstrap.sh + - name: Run + run: tests/scripts/check-scan-build + + package: + runs-on: ubuntu-18.04 + env: + BUILD_TARGET: package + steps: + - uses: actions/checkout@v2 + with: + submodules: true + - name: Bootstrap + run: tests/scripts/bootstrap.sh + - name: Build + run: script/test package |