Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brodeynewman committed Jan 6, 2025
1 parent 5e49dac commit f445309
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/artifact-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,26 +75,21 @@ jobs:
run: |
container_id=$(docker create scuda-builder-${{ matrix.cuda_version }})
# Extract major and minor version from CUDA version
major_minor_version=$(echo "${{ matrix.cuda_version }}" | awk -F. '{print $1 "." $2}')
# Copy files from the container using major and minor version
docker cp $container_id:/home/libscuda_${major_minor_version}.so ./libscuda_${major_minor_version}_${{ matrix.os_distro }}_${{ matrix.distro_version }}.so
docker cp $container_id:/home/server_${major_minor_version}.so ./server_${major_minor_version}_${{ matrix.os_distro }}_${{ matrix.distro_version }}.so
# Remove the temporary container
docker rm $container_id
# List the files to verify they exist
tar -czf scuda-artifacts-${{ matrix.cuda_version }}-${{ matrix.distro_version }}.tar.gz \
./libscuda_${major_minor_version}_${{ matrix.os_distro }}_${{ matrix.distro_version }}.so \
./server_${major_minor_version}_${{ matrix.os_distro }}_${{ matrix.distro_version }}.so
# list the files to verify they exist
ls -al
- name: Upload Artifacts
run: |
major_minor_version=$(echo "${{ matrix.cuda_version }}" | awk -F. '{print $1 "." $2}')
tar -czf scuda-artifacts-${major_minor_version}-${{ matrix.distro_version }}.tar.gz \
./libscuda_${major_minor_version}_${{ matrix.os_distro }}_${{ matrix.distro_version }}.so \
./server_${major_minor_version}_${{ matrix.os_distro }}_${{ matrix.distro_version }}.so
uses: actions/upload-artifact@v4
with:
name: scuda-artifacts-${{ matrix.cuda_version }}-${{ matrix.distro_version }}
Expand Down

0 comments on commit f445309

Please sign in to comment.