[CI] Added submodule fetch

This commit is contained in:
Ganesh Gore 2020-12-15 13:48:49 -07:00
parent 29deb0feea
commit d286166d57
1 changed files with 9 additions and 8 deletions

View File

@ -48,17 +48,18 @@ jobs:
with:
repository: lnis-uofu/OpenFPGA
path: OpenFPGA
submodules: true
- name: Install dependency
run: source ./.github/workflows/install_dependency.sh
run: source ./.github/workflows/install_dependency.sh
- name: Checkout CMake version
run: cmake --version
run: cmake --version
- name: Checkout iVerilog version
run: |
iverilog -V
vvp -V
iverilog -V
vvp -V
- name: Create CMake build environment
# Some projects don't allow in-source building, so create a separate build directory
@ -70,8 +71,8 @@ jobs:
# access regardless of the host operating system
shell: bash
working-directory: ${{runner.workspace}}/OpenFPGA/build
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# Note the current convention is to use the -S and -B options here to specify source
# and build directories, but this is only available with CMake 3.13 and higher.
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
run: |
export CC=${{ matrix.config.cc }}
@ -83,10 +84,10 @@ jobs:
shell: bash
# Execute the build. You can specify a specific target with "--target <NAME>"
run: |
cmake --build . --config $BUILD_TYPE
cmake --build . --config $BUILD_TYPE
- name: ${{matrix.config.name}}
if: contains(matrix.config.name, 'Quick Test')
shell: bash
# Execute the test.
# Execute the test.
run: source ./.github/workflows/${{matrix.config.reg_script}}