Skip to content

Commit

Permalink
xxxxxx
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Feb 2, 2024
1 parent 943ec61 commit 62899cb
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,20 @@ jobs:
with:
python-version: '3.10'

- uses: Jimver/[email protected]
if: ${{ matrix.cuda-version == '11.8' }}
with:
cuda: '11.8.0'

- uses: Jimver/[email protected]
if: ${{ matrix.cuda-version == '12.1' }}
with:
cuda: '12.1.1'

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
- id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
if [ "${{ matrix.cuda-version }}" = "11.8" ]; then
echo "cuda-toolkit-version=11.8.0" >> "$GITHUB_OUTPUT"
else
echo "cuda-toolkit-version=12.1.1" >> "$GITHUB_OUTPUT"
fi
- uses: Jimver/[email protected]
with:
cuda: ${{ strings.outputs.cuda-toolkit-version }}

- name: Prepare
shell: bash -el {0}
Expand Down

0 comments on commit 62899cb

Please sign in to comment.