diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94653a3..57908a6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -509,13 +509,18 @@ jobs: result: "${{ steps.read.outputs.result }}" create-checksum-file: - runs-on: ubuntu-latest - needs: [read, create-draft-release] + runs-on: ubuntu-20-04 permissions: contents: write + needs: [read, create-draft-release] steps: - - name: Create checksum.yml + - name: Download cuda dependencies from s3 and create checksum run: | + wget http://minio.jan.ai:9000/cicd/dist/cuda-dependencies/12.0/linux/cuda.tar.gz -O /tmp/cuda-12-0-linux-amd64.tar.gz + wget http://minio.jan.ai:9000/cicd/dist/cuda-dependencies/11.7/linux/cuda.tar.gz -O /tmp/cuda-11-7-linux-amd64.tar.gz + wget http://minio.jan.ai:9000/cicd/dist/cuda-dependencies/12.0/windows/cuda.tar.gz -O /tmp/cuda-12-0-windows-amd64.tar.gz + wget http://minio.jan.ai:9000/cicd/dist/cuda-dependencies/11.7/windows/cuda.tar.gz -O /tmp/cuda-11-7-windows-amd64.tar.gz + version=${{ needs.create-draft-release.outputs.version }} outputs=${{ toJson(needs.read.outputs.result) }} @@ -531,15 +536,78 @@ jobs: "- url: cortex.llamacpp-\($version)-\($key).tar.gz\n sha512: >-\n \($sha512[$key])\n size: \($size[$key])" ' >> checksum.yml + echo "- url: cuda-12-0-linux-amd64.tar.gz" >> checksum.yml + echo " sha512: >-" >> checksum.yml + echo " $(sha512sum /tmp/cuda-12-0-linux-amd64.tar.gz | awk '{ print $1 }')" >> checksum.yml + echo " size: $(stat -c%s /tmp/cuda-12-0-linux-amd64.tar.gz)" >> checksum.yml + + echo "- url: cuda-11-7-linux-amd64.tar.gz" >> checksum.yml + echo " sha512: >-" >> checksum.yml + echo " $(sha512sum /tmp/cuda-11-7-linux-amd64.tar.gz | awk '{ print $1 }')" >> checksum.yml + echo " size: $(stat -c%s /tmp/cuda-11-7-linux-amd64.tar.gz)" >> checksum.yml + + echo "- url: cuda-11-7-windows-amd64.tar.gz" >> checksum.yml + echo " sha512: >-" >> checksum.yml + echo " $(sha512sum /tmp/cuda-11-7-windows-amd64.tar.gz | awk '{ print $1 }')" >> checksum.yml + echo " size: $(stat -c%s /tmp/cuda-11-7-windows-amd64.tar.gz)" >> checksum.yml + + echo "- url: cuda-12-0-windows-amd64.tar.gz" >> checksum.yml + echo " sha512: >-" >> checksum.yml + echo " $(sha512sum /tmp/cuda-12-0-windows-amd64.tar.gz | awk '{ print $1 }')" >> checksum.yml + echo " size: $(stat -c%s /tmp/cuda-12-0-windows-amd64.tar.gz)" >> checksum.yml cat checksum.yml - name: Upload checksum.yml to GitHub Release + uses: actions/upload-release-asset@v1 if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-release-asset@v1 with: upload_url: ${{ needs.create-draft-release.outputs.upload_url }} asset_path: ./checksum.yml asset_name: checksum.yml - asset_content_type: text/yaml \ No newline at end of file + asset_content_type: text/yaml + + - name: upload cuda-12-0-linux-amd64.tar.gz to Github Release + uses: actions/upload-release-asset@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-draft-release.outputs.upload_url }} + asset_path: /tmp/cuda-12-0-linux-amd64.tar.gz + asset_name: cuda-12-0-linux-amd64.tar.gz + asset_content_type: application/gzip + + - name: upload cuda-11-7-linux-amd64.tar.gz to Github Release + uses: actions/upload-release-asset@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-draft-release.outputs.upload_url }} + asset_path: /tmp/cuda-11-7-linux-amd64.tar.gz + asset_name: cuda-11-7-linux-amd64.tar.gz + asset_content_type: application/gzip + + - name: upload cuda-12-0-windows-amd64.tar.gz to Github Release + uses: actions/upload-release-asset@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-draft-release.outputs.upload_url }} + asset_path: /tmp/cuda-12-0-windows-amd64.tar.gz + asset_name: cuda-12-0-windows-amd64.tar.gz + asset_content_type: application/gzip + + - name: upload cuda-11-7-windows-amd64.tar.gz to Github Release + uses: actions/upload-release-asset@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-draft-release.outputs.upload_url }} + asset_path: /tmp/cuda-11-7-windows-amd64.tar.gz + asset_name: cuda-11-7-windows-amd64.tar.gz + asset_content_type: application/gzip \ No newline at end of file diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml index 267369d..804b787 100644 --- a/.github/workflows/nightly-build.yml +++ b/.github/workflows/nightly-build.yml @@ -507,13 +507,18 @@ jobs: result: "${{ steps.read.outputs.result }}" create-checksum-file: - runs-on: ubuntu-latest + runs-on: ubuntu-20-04 permissions: contents: write needs: [read, create-draft-release] steps: - - name: Create checksum.yml + - name: Download cuda dependencies from s3 and create checksum run: | + wget http://minio.jan.ai:9000/cicd/dist/cuda-dependencies/12.0/linux/cuda.tar.gz -O /tmp/cuda-12-0-linux-amd64.tar.gz + wget http://minio.jan.ai:9000/cicd/dist/cuda-dependencies/11.7/linux/cuda.tar.gz -O /tmp/cuda-11-7-linux-amd64.tar.gz + wget http://minio.jan.ai:9000/cicd/dist/cuda-dependencies/12.0/windows/cuda.tar.gz -O /tmp/cuda-12-0-windows-amd64.tar.gz + wget http://minio.jan.ai:9000/cicd/dist/cuda-dependencies/11.7/windows/cuda.tar.gz -O /tmp/cuda-11-7-windows-amd64.tar.gz + version=${{ needs.create-draft-release.outputs.version }} outputs=${{ toJson(needs.read.outputs.result) }} @@ -529,6 +534,26 @@ jobs: "- url: cortex.llamacpp-\($version)-\($key).tar.gz\n sha512: >-\n \($sha512[$key])\n size: \($size[$key])" ' >> checksum.yml + echo "- url: cuda-12-0-linux-amd64.tar.gz" >> checksum.yml + echo " sha512: >-" >> checksum.yml + echo " $(sha512sum /tmp/cuda-12-0-linux-amd64.tar.gz | awk '{ print $1 }')" >> checksum.yml + echo " size: $(stat -c%s /tmp/cuda-12-0-linux-amd64.tar.gz)" >> checksum.yml + + echo "- url: cuda-11-7-linux-amd64.tar.gz" >> checksum.yml + echo " sha512: >-" >> checksum.yml + echo " $(sha512sum /tmp/cuda-11-7-linux-amd64.tar.gz | awk '{ print $1 }')" >> checksum.yml + echo " size: $(stat -c%s /tmp/cuda-11-7-linux-amd64.tar.gz)" >> checksum.yml + + echo "- url: cuda-11-7-windows-amd64.tar.gz" >> checksum.yml + echo " sha512: >-" >> checksum.yml + echo " $(sha512sum /tmp/cuda-11-7-windows-amd64.tar.gz | awk '{ print $1 }')" >> checksum.yml + echo " size: $(stat -c%s /tmp/cuda-11-7-windows-amd64.tar.gz)" >> checksum.yml + + echo "- url: cuda-12-0-windows-amd64.tar.gz" >> checksum.yml + echo " sha512: >-" >> checksum.yml + echo " $(sha512sum /tmp/cuda-12-0-windows-amd64.tar.gz | awk '{ print $1 }')" >> checksum.yml + echo " size: $(stat -c%s /tmp/cuda-12-0-windows-amd64.tar.gz)" >> checksum.yml + cat checksum.yml - name: Upload checksum.yml to GitHub Release @@ -540,4 +565,48 @@ jobs: upload_url: ${{ needs.create-draft-release.outputs.upload_url }} asset_path: ./checksum.yml asset_name: checksum.yml - asset_content_type: text/yaml \ No newline at end of file + asset_content_type: text/yaml + + - name: upload cuda-12-0-linux-amd64.tar.gz to Github Release + uses: actions/upload-release-asset@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-draft-release.outputs.upload_url }} + asset_path: /tmp/cuda-12-0-linux-amd64.tar.gz + asset_name: cuda-12-0-linux-amd64.tar.gz + asset_content_type: application/gzip + + - name: upload cuda-11-7-linux-amd64.tar.gz to Github Release + uses: actions/upload-release-asset@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-draft-release.outputs.upload_url }} + asset_path: /tmp/cuda-11-7-linux-amd64.tar.gz + asset_name: cuda-11-7-linux-amd64.tar.gz + asset_content_type: application/gzip + + - name: upload cuda-12-0-windows-amd64.tar.gz to Github Release + uses: actions/upload-release-asset@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-draft-release.outputs.upload_url }} + asset_path: /tmp/cuda-12-0-windows-amd64.tar.gz + asset_name: cuda-12-0-windows-amd64.tar.gz + asset_content_type: application/gzip + + - name: upload cuda-11-7-windows-amd64.tar.gz to Github Release + uses: actions/upload-release-asset@v1 + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ needs.create-draft-release.outputs.upload_url }} + asset_path: /tmp/cuda-11-7-windows-amd64.tar.gz + asset_name: cuda-11-7-windows-amd64.tar.gz + asset_content_type: application/gzip \ No newline at end of file