浏览代码

gha: Added test-yes-trace build/test job to CI

To hopefully catch typos like the one found by Noxet in the future.

Nothing is actually testing that these trace statements compile
otherwise.
Christopher Haster 10 月之前
父节点
当前提交
d2c3a47627
共有 1 个文件被更改,包括 23 次插入0 次删除
  1. 23 0
      .github/workflows/test.yml

+ 23 - 0
.github/workflows/test.yml

@@ -374,6 +374,29 @@ jobs:
         run: |
         run: |
           CFLAGS="$CFLAGS -DLFS_NO_INTRINSICS" make test
           CFLAGS="$CFLAGS -DLFS_NO_INTRINSICS" make test
 
 
+  # run with all trace options enabled to at least make sure these
+  # all compile
+  test-yes-trace:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+      - name: install
+        run: |
+          # need a few things
+          sudo apt-get update -qq
+          sudo apt-get install -qq gcc python3 python3-pip
+          pip3 install toml
+          gcc --version
+          python3 --version
+      - name: test-yes-trace
+        run: |
+          CFLAGS="$CFLAGS \
+            -DLFS_YES_TRACE \
+            -DLFS_RAMBD_YES_TRACE \
+            -DLFS_FILEBD_YES_TRACE \
+            -DLFS_RAMBD_YES_TRACE" \
+            make test
+
   # run LFS_MULTIVERSION tests
   # run LFS_MULTIVERSION tests
   test-multiversion:
   test-multiversion:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest