Skip to content

Commit

Permalink
Build seprate binaries for cpu and gpu
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafal Leszko committed Sep 21, 2023
1 parent 1894ef7 commit 733bdfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ 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
- name: Install dependencies
run: |
Expand Down

0 comments on commit 733bdfa

Please sign in to comment.