[script] serialize make all depedent targets to avoid ``make all`` bugs
This commit is contained in:
parent
f271fb520b
commit
249caaa7ff
|
@ -127,15 +127,10 @@ jobs:
|
|||
|
||||
- uses: hendrikmuhs/ccache-action@v1
|
||||
|
||||
- name: checkout submodules
|
||||
shell: bash
|
||||
run: |
|
||||
make checkout
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
make compile BUILD_TYPE=$BUILD_TYPE
|
||||
make all BUILD_TYPE=$BUILD_TYPE
|
||||
|
||||
# Check the cache size and see if it is over the limit
|
||||
- name: Check ccache size
|
||||
|
@ -216,15 +211,10 @@ jobs:
|
|||
|
||||
- uses: hendrikmuhs/ccache-action@v1
|
||||
|
||||
- name: checkout submodules
|
||||
shell: bash
|
||||
run: |
|
||||
make checkout
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
make compile BUILD_TYPE=$BUILD_TYPE CMAKE_FLAGS="${{ matrix.config.cmake_flags }}"
|
||||
make all BUILD_TYPE=$BUILD_TYPE CMAKE_FLAGS="${{ matrix.config.cmake_flags }}"
|
||||
|
||||
ubuntu_support:
|
||||
needs: change_detect
|
||||
|
@ -262,15 +252,10 @@ jobs:
|
|||
|
||||
- uses: hendrikmuhs/ccache-action@v1
|
||||
|
||||
- name: checkout submodules
|
||||
shell: bash
|
||||
run: |
|
||||
make checkout
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
make compile BUILD_TYPE=$BUILD_TYPE
|
||||
make all BUILD_TYPE=$BUILD_TYPE
|
||||
|
||||
debug_build:
|
||||
needs: change_detect
|
||||
|
@ -315,15 +300,10 @@ jobs:
|
|||
|
||||
- uses: hendrikmuhs/ccache-action@v1
|
||||
|
||||
- name: checkout submodules
|
||||
shell: bash
|
||||
run: |
|
||||
make checkout
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
make compile BUILD_TYPE=${{ matrix.config.build_type }} -j ${{ matrix.config.cores }}
|
||||
make all BUILD_TYPE=${{ matrix.config.build_type }} -j ${{ matrix.config.cores }}
|
||||
|
||||
- name: Quick Test
|
||||
shell: bash
|
||||
|
@ -371,15 +351,10 @@ jobs:
|
|||
|
||||
- uses: hendrikmuhs/ccache-action@v1
|
||||
|
||||
- name: checkout submodules
|
||||
shell: bash
|
||||
run: |
|
||||
make checkout
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
make compile BUILD_TYPE=${{ matrix.config.build_type }} -j ${{ matrix.config.cores }} CMAKE_FLAGS="-DOPENFPGA_ENABLE_STRICT_COMPILE=ON"
|
||||
make all BUILD_TYPE=${{ matrix.config.build_type }} -j ${{ matrix.config.cores }} CMAKE_FLAGS="-DOPENFPGA_ENABLE_STRICT_COMPILE=ON"
|
||||
|
||||
- name: Quick Test
|
||||
shell: bash
|
||||
|
|
2
Makefile
2
Makefile
|
@ -79,7 +79,7 @@ list_cmake_targets: prebuild
|
|||
# Show the targets available to be built, which can be specified through ``CMAKE_GOALS`` when compile
|
||||
cd ${BUILD_DIR} && make help && cd -
|
||||
|
||||
all: checkout compile
|
||||
all: checkout | compile
|
||||
# A shortcut command to run checkout and compile in serial
|
||||
|
||||
format-cpp:
|
||||
|
|
Loading…
Reference in New Issue