From 9074b655f5ea7fffc6299e7c6bb2bfb5fe5a7aa9 Mon Sep 17 00:00:00 2001 From: Krystine Sherwin <93062060+KrystalDelusion@users.noreply.github.com> Date: Fri, 19 Jul 2024 14:30:16 +1200 Subject: [PATCH] ci: Test sparse build This should fail with the current makefile. Essentially a test case for #4470. --- .github/workflows/extra-builds.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/extra-builds.yml b/.github/workflows/extra-builds.yml index d7c6e13ff..aaed6f8a0 100644 --- a/.github/workflows/extra-builds.yml +++ b/.github/workflows/extra-builds.yml @@ -95,3 +95,34 @@ jobs: with: install_url: https://releases.nixos.org/nix/nix-2.18.1/install - run: nix build .?submodules=1 + + sparse-build: + name: "Build without abc or git" # emulate build from release tarball + needs: pre_job + if: needs.pre_job.outputs.should_skip != 'true' + runs-on: ubuntu-latest + env: + CC: clang + steps: + - name: Sparse checkout + uses: actions/checkout@v4 + with: + sparse-checkout: | + . + backends + frontends + kernel + libs + misc + passes + techlibs + + - name: Setup environment + uses: ./.github/actions/setup-build-env + + - name: Build + shell: bash + run: | + make config-$CC + make -j$procs +