3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 09:35:32 +00:00

ci: Test sparse build

This should fail with the current makefile.
Essentially a test case for #4470.
This commit is contained in:
Krystine Sherwin 2024-07-19 14:30:16 +12:00
parent 28ebefda4a
commit 9074b655f5
No known key found for this signature in database

View file

@ -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