From 2fb18455f5168b0f2d4a9cec9a5e2332eeb1a7e7 Mon Sep 17 00:00:00 2001 From: Pawel Czarnecki Date: Thu, 6 Jun 2024 11:47:00 +0200 Subject: [PATCH] CI: Add custom ZSTD module workflow Internal-tag: [#52186] Signed-off-by: Pawel Czarnecki --- .../workflows/continuous-integration-zstd.yml | 42 +++++++++++++++++++ .github/workflows/continuous-integration.yml | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/continuous-integration-zstd.yml diff --git a/.github/workflows/continuous-integration-zstd.yml b/.github/workflows/continuous-integration-zstd.yml new file mode 100644 index 0000000000..f3129a77ab --- /dev/null +++ b/.github/workflows/continuous-integration-zstd.yml @@ -0,0 +1,42 @@ +name: Continuous Integration - ZSTD Module +on: + # Avoid triggering on pushes to /all/ open PR branches. + push: + branches: + - main + paths: + - 'xls/modules/zstd/**' + pull_request: + branches: + - main + paths: + - 'xls/modules/zstd/**' + # This lets us trigger manually from the UI. + workflow_dispatch: + +jobs: + build: + name: Bazel Build (opt) + runs-on: + labels: ubuntu-22.04-64core + timeout-minutes: 600 + steps: + - uses: actions/checkout@v2 + + - name: Restore Nightly Bazel Cache + uses: actions/cache/restore@v4 + with: + path: "~/.cache/bazel" + key: bazel-cache-nightly-${{ runner.os }}-${{ github.sha }} + restore-keys: bazel-cache-nightly-${{ runner.os }}- + + - name: Install dependencies via apt + run: sudo apt-get install python3-distutils python3-dev python-is-python3 libtinfo5 build-essential liblapack-dev libblas-dev gfortran + + - name: Bazel Build Tools (opt) + run: | + bazel build -c opt --test_output=errors -- //xls/dslx:interpreter_main //xls/dslx/ir_convert:ir_converter_main //xls/tools:opt_main //xls/tools:codegen_main + + - name: Bazel Test All (opt) + run: | + bazel test -c opt --test_output=errors -- //xls/modules/zstd/... diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 3c24746ef6..a6bece12cb 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -41,4 +41,4 @@ jobs: - name: Bazel Test All (opt) run: | - bazel test -c opt --noshow_progress --test_output=errors -- //xls/... + bazel test -c opt --noshow_progress --test_output=errors -- //xls/... -//xls/modules/zstd/...