diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 34405765df..59f883701e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -80,6 +80,10 @@ jobs: echo "GOOS=${{ matrix.platform.name }}" >> $GITHUB_ENV echo "GO_BUILD_DIR=lp-builds/" >> $GITHUB_ENV echo "PKG_CONFIG_PATH=/github/home/compiled/lib/pkgconfig" >> $GITHUB_ENV + + - name: Set GPU build environment + if: matrix.hardware.type == 'gpu' + run: | echo "CPATH=/usr/local/cuda_${{ matrix.arch }}/include" >> $GITHUB_ENV echo "LIBRARY_PATH=/usr/local/cuda_${{ matrix.arch }}/lib64" >> $GITHUB_ENV echo "CGO_LDFLAGS=-L/usr/local/cuda_${{ matrix.arch }}/lib64" >> $GITHUB_ENV