Skip to content

Commit

Permalink
Build debug version too
Browse files Browse the repository at this point in the history
  • Loading branch information
dfalbel committed Nov 12, 2024
1 parent 06b9961 commit f702b05
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/libtorch-linux-cuda-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
strategy:
matrix:
cuda: ['118', '124']
config: ['Debug', 'Release']
include:
- cuda: '118'
container: nvidia/cuda:11.8.0-cudnn8-devel-ubuntu20.04
Expand Down Expand Up @@ -60,14 +61,14 @@ jobs:
-DUSE_CUDA=ON \
-DCMAKE_INSTALL_PREFIX:PATH=../libtorch \
../pytorch
cmake --build . --target install --parallel 8
cmake --build . --target install --parallel 8 --config ${{ matrix.config }}
- name: Create archive
run: |
zip -r libtorch-linux-cuda${{ matrix.cuda }}-x86_64-${{ github.event.inputs.branch }}.zip libtorch/
zip -r libtorch-linux-cuda${{ matrix.cuda }}-${{ matrix.config }}-x86_64-${{ github.event.inputs.branch }}.zip libtorch/
- uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: libtorch-linux-cuda${{ matrix.cuda }}-x86_64-${{ github.event.inputs.branch }}.zip
file: libtorch-linux-cuda${{ matrix.cuda }}-${{ matrix.config }}-x86_64-${{ github.event.inputs.branch }}.zip
overwrite: true
file_glob: true
tag: LibTorch-for-R
Expand Down

0 comments on commit f702b05

Please sign in to comment.