diff --git a/.github/workflows/binary-build.yml b/.github/workflows/binary-build.yml index ec0e4eed0..24223aa57 100644 --- a/.github/workflows/binary-build.yml +++ b/.github/workflows/binary-build.yml @@ -45,7 +45,8 @@ jobs: pip install pip --upgrade pip install numpy lit - - name: Configure CMake + - name: Configure CMake for linux + if: matrix.os == 'ubuntu-20.04' # Use a bash shell so we can use the same syntax for environment variable # access regardless of the host operating system #working-directory: ${{runner.workspace}}/build @@ -54,6 +55,20 @@ jobs: # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTING=ON -DSTATICCOMPILE=${{ matrix.staticcompile }} + - name: Add git submodules for Linux only (not needed for non-testing) + if: matrix.os == 'ubuntu-20.04' + run: git submodule update --init + + - name: Configure CMake for non-linux + if: matrix.os != 'ubuntu-20.04' + # Use a bash shell so we can use the same syntax for environment variable + # access regardless of the host operating system + #working-directory: ${{runner.workspace}}/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. + # The CMake binaries on the Github Actions machines are (as of this writing) 3.12 + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTING=OFF -DSTATICCOMPILE=${{ matrix.staticcompile }} + - name: Build #working-directory: ${{runner.workspace}}/build # Execute the build. You can specify a specific target with "--target "