Resolve "Use dependencies instead of makefile chaining"

This commit is contained in:
Byron Lathi
2023-09-30 04:16:52 +00:00
parent 74f69378e8
commit d3d3fea916
4 changed files with 48 additions and 9 deletions

View File

@@ -20,9 +20,23 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
stages: # List of stages for jobs, and their order of execution
- toolchain
- build
build-fpga: # This job runs in the build stage, which runs first.
build toolchain:
tags:
- linux
stage: toolchain
script:
- source init_env.sh
- cd sw/cc65
- make -j
artifacts:
paths:
- sw/cc65/bin
- sw/cc65/lib
build fpga: # This job runs in the build stage, which runs first.
tags:
- efinity
- linux
@@ -32,15 +46,36 @@ build-fpga: # This job runs in the build stage, which runs first.
- cd hw/efinix_fpga
- make
build-sim:
build sim:
tags:
- iverilog
- linux
stage: build
script:
- source init_env.sh
- cd sw/cc65
- make -j
- cd ../..
- cd hw/efinix_fpga/simulation
- make
dependencies:
- build toolchain
build bios:
tags:
- linux
stage: build
script:
- source init_env.sh
- cd sw/
- make bios
dependencies:
- build toolchain
build kernel:
tags:
- linux
stage: build
script:
- source init_env.sh
- cd sw/
- make kernel
dependencies:
- build toolchain