summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/openwrt-ci-pull-request.yml
blob: 53e923f26f2975abc3f353923d46d2290694447a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: OpenWrt CI pull request testing

on:
  push:
    branches-ignore:
      - master
  pull_request:

env:
  CI_ENABLE_UNIT_TESTING: 1
  CI_TARGET_BUILD_DEPENDS: libnl-tiny ubus uci

jobs:
  native_testing:
    name: Various native checks
    runs-on: ubuntu-20.04

    steps:
      - uses: actions/checkout@v2

      - uses: ynezz/gh-actions-openwrt-ci-native@v0.0.2
        env:
          CI_GCC_VERSION_LIST:
          CI_CLANG_VERSION_LIST: 11

      - name: Upload build artifacts
        uses: actions/upload-artifact@v2
        if: failure()
        with:
          name: native-build-artifacts
          if-no-files-found: ignore
          path: |
            build/scan
            tests/cram/**/*.t.err

  sdk_build:
    name: Build with OpenWrt ${{ matrix.sdk_platform }} SDK (out of tree)
    runs-on: ubuntu-20.04

    strategy:
      fail-fast: false
      matrix:
        sdk_platform:
          - ath79-generic
          - imx-cortexa9
          - malta-be
          - mvebu-cortexa53

    steps:
      - uses: actions/checkout@v2

      - name: Out of tree build with OpenWrt ${{ matrix.sdk_platform }} SDK
        uses: ynezz/gh-actions-openwrt-ci-sdk@v0.0.2
        env:
          CI_TARGET_SDK_RELEASE: master
          CI_TARGET_SDK_IMAGE: ${{ matrix.sdk_platform }}