[openwrt/openwrt] CI: usability improvements for tools

LEDE Commits lede-commits at lists.infradead.org
Sun Dec 4 08:37:16 PST 2022


ansuel pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/119c6573c49ec1ca31b0fac56aa41120315fe229

commit 119c6573c49ec1ca31b0fac56aa41120315fe229
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Wed Mar 30 01:43:17 2022 +0100

    CI: usability improvements for tools
    
    * Always store build logs
    * Store .config as an artifact
    * Rename job to `tools-{ os }` for log archive without spaces
    * Run CI job on changes to the CI file itself
    
    Signed-off-by: Paul Spooren <mail at aparcar.org>
    (cherry picked from commit 80f79beb952dcb87d967a130d326cb1dd5a077ed)
---
 .github/workflows/tools.yml | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/tools.yml b/.github/workflows/tools.yml
index e089e26193..4e423fdd62 100644
--- a/.github/workflows/tools.yml
+++ b/.github/workflows/tools.yml
@@ -4,13 +4,14 @@ on:
   pull_request:
     paths:
       - 'tools/**'
+      - '.github/workflows/tools.yml'
 
 permissions:
   contents: read
 
 jobs:
   build:
-    name: Build tools on ${{ matrix.os }}
+    name: tools-${{ matrix.os }}
     runs-on: ${{ matrix.os }}
     strategy:
       fail-fast: False
@@ -125,13 +126,22 @@ jobs:
           make tools/install -j$(nproc) BUILD_LOG=1
 
       - name: Move logs to GITHUB_WORKSPACE
-        if: failure()
+        if: always()
         run: |
           cp -r "$WORKPATH/logs" "$GITHUB_WORKSPACE"
+          cp -r "$WORKPATH/.config" "$GITHUB_WORKSPACE/config"
+
 
       - name: Upload logs
-        if: failure()
+        if: always()
         uses: actions/upload-artifact at v2
         with:
           name: ${{ matrix.os }}-logs
           path: "logs"
+
+      - name: Upload config
+        if: always()
+        uses: actions/upload-artifact at v2
+        with:
+          name: ${{ matrix.os }}-config
+          path: "config"




More information about the lede-commits mailing list