From 93c946546cac012ea1cf232d78b9221a7fe461bb Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Wed, 18 Sep 2024 19:23:18 -0700 Subject: [PATCH] Use latest bant for dependency checking. --- .github/workflows/verible-ci.yml | 33 +++++++++++++------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/verible-ci.yml b/.github/workflows/verible-ci.yml index 1a10ceb04..5202674bb 100644 --- a/.github/workflows/verible-ci.yml +++ b/.github/workflows/verible-ci.yml @@ -115,7 +115,7 @@ jobs: name: "diag" path: "**/plot_*.svg" - RunBantBuildCleaneer: + RunBantBuildCleaner: # Running http://bant.build/ to check all dependencies in BUILD files. runs-on: ubuntu-24.04 steps: @@ -124,28 +124,10 @@ jobs: with: fetch-depth: 0 - - name: Build Project genrules - run: | - # Fetch all dependency and run genrules for bant to see every file - # that makes it into the compile. - bazel fetch ... - bazel build \ - //common/analysis:command-file-lexer \ - //common/lsp:jcxxgen-testfile-gen \ - //common/lsp:lsp-protocol-gen \ - //common/util:version-header \ - //verilog/CST:verilog-nonterminals-foreach-gen \ - //verilog/parser:gen-verilog-token-enum \ - //verilog/parser:verilog-lex \ - //verilog/parser:verilog-parse-interface \ - //verilog/parser:verilog-y \ - //verilog/parser:verilog-y-final \ - //verilog/tools/kythe:verilog-extractor-indexing-fact-type-foreach-gen - - name: Get Bant run: | # TODO: provide this as action where we simply say with version=... - VERSION="v0.1.5" + VERSION="v0.1.7" STATIC_VERSION="bant-${VERSION}-linux-static-x86_64" wget "https://github.com/hzeller/bant/releases/download/${VERSION}/${STATIC_VERSION}.tar.gz" tar xvzf "${STATIC_VERSION}.tar.gz" @@ -153,6 +135,17 @@ jobs: ln -sf ../"${STATIC_VERSION}/bin/bant" bin/ bin/bant -V + - name: Build Project genrules + run: | + # Fetch all dependencies and run genrules for bant to see every file + # that makes it into the compile. Use bant itself to find genrules. + bazel fetch ... + bazel build $(bin/bant -q genrule-outputs | awk '{print $2}') \ + //common/analysis:command-file-lexer \ + //verilog/parser:verilog-lex \ + //verilog/parser:verilog-y \ + //verilog/parser:verilog-y-final + - name: Run bant build-cleaner run: | bin/bant dwyu ...