summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-05-31 10:50:37 +0200
committerGitHub <noreply@github.com>2022-05-31 10:50:37 +0200
commit9b35df7b37f21043f4be0bdba011000ad4f7cf0f (patch)
treef7bb39be35b5858abb8990ff71797ccbe57aec61 /.github
parentae62d7224c70d202a3d0ee3eecc25eb6551c92ef (diff)
parent559029e11a0dac6bbbcfd35dd8000f62d6241af1 (diff)
Merge pull request #75 from ynezz/ynezz/ci-speedup
ci: make jobs faster during pull request testing
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/openwrt-ci-master.yml (renamed from .github/workflows/openwrt-ci.yml)10
-rw-r--r--.github/workflows/openwrt-ci-pull-request.yml56
2 files changed, 63 insertions, 3 deletions
diff --git a/.github/workflows/openwrt-ci.yml b/.github/workflows/openwrt-ci-master.yml
index 4342205..77f2bfc 100644
--- a/.github/workflows/openwrt-ci.yml
+++ b/.github/workflows/openwrt-ci-master.yml
@@ -1,6 +1,10 @@
-name: OpenWrt CI testing
+name: OpenWrt CI master branch testing
+
+on:
+ push:
+ branches:
+ - master
-on: [ push, pull_request ]
env:
CI_ENABLE_UNIT_TESTING: 1
CI_TARGET_BUILD_DEPENDS: libnl-tiny ubus uci
@@ -13,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- - uses: ynezz/gh-actions-openwrt-ci-native@v0.0.1
+ - uses: ynezz/gh-actions-openwrt-ci-native@v0.0.2
- name: Upload build artifacts
uses: actions/upload-artifact@v2
diff --git a/.github/workflows/openwrt-ci-pull-request.yml b/.github/workflows/openwrt-ci-pull-request.yml
new file mode 100644
index 0000000..e6be980
--- /dev/null
+++ b/.github/workflows/openwrt-ci-pull-request.yml
@@ -0,0 +1,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
+ - imx6-generic
+ - 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.1
+ env:
+ CI_TARGET_SDK_RELEASE: master
+ CI_TARGET_SDK_IMAGE: ${{ matrix.sdk_platform }}