Skip to content

Commit a82ee12

Browse files
committed
Use alternative workaround for GitHub API limits
1 parent 92b946e commit a82ee12

File tree

5 files changed

+105
-50
lines changed

5 files changed

+105
-50
lines changed

.github/workflows/build-wheels-0.1.62.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,31 @@ jobs:
6868
if ($env:AVXVER -eq 'AVX512') {$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DLLAMA_AVX512=on'}
6969
$env:CUDAFLAGS = '-arch=all'
7070
python -m build --wheel -C--build-option=egg_info "-C--build-option=--tag-build=+cu$cudaVersion"
71+
72+
- uses: actions/upload-artifact@v3
73+
with:
74+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
75+
path: ./dist/*.whl
76+
77+
upload_release_assets:
78+
name: Upload wheels to a GitHub release
79+
needs: build_wheels
80+
runs-on: ubuntu-latest
81+
strategy:
82+
matrix:
83+
releasetag: ["AVX","wheels","AVX512"]
84+
85+
steps:
86+
- uses: actions/download-artifact@v3
87+
with:
88+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
7189

72-
- name: Upload files to a GitHub release
90+
- name: Upload ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }} wheels to a GitHub release
7391
id: upload-release
7492
uses: svenstaro/upload-release-action@2.6.1
75-
continue-on-error: true
7693
with:
77-
file: ./dist/*.whl
94+
file: ./**.whl
7895
tag: ${{ matrix.releasetag }}
7996
file_glob: true
8097
make_latest: false
81-
overwrite: true
82-
83-
- uses: actions/upload-artifact@v3
84-
if: steps.upload-release.outcome == 'failure'
85-
with:
86-
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
87-
path: ./dist/*.whl
98+
overwrite: ${{ github.run_attempt == '1' && 'true' || 'false' }}

.github/workflows/build-wheels-0.1.66.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,31 @@ jobs:
6767
if ($env:AVXVER -eq 'AVX') {$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DLLAMA_AVX2=off'}
6868
if ($env:AVXVER -eq 'AVX512') {$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DLLAMA_AVX512=on'}
6969
python -m build --wheel -C--build-option=egg_info "-C--build-option=--tag-build=+cu$cudaVersion"
70+
71+
- uses: actions/upload-artifact@v3
72+
with:
73+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
74+
path: ./dist/*.whl
75+
76+
upload_release_assets:
77+
name: Upload wheels to a GitHub release
78+
needs: build_wheels
79+
runs-on: ubuntu-latest
80+
strategy:
81+
matrix:
82+
releasetag: ["AVX","wheels","AVX512"]
83+
84+
steps:
85+
- uses: actions/download-artifact@v3
86+
with:
87+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
7088

71-
- name: Upload files to a GitHub release
89+
- name: Upload ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }} wheels to a GitHub release
7290
id: upload-release
7391
uses: svenstaro/upload-release-action@2.6.1
74-
continue-on-error: true
7592
with:
76-
file: ./dist/*.whl
93+
file: ./**.whl
7794
tag: ${{ matrix.releasetag }}
7895
file_glob: true
7996
make_latest: false
80-
overwrite: true
81-
82-
- uses: actions/upload-artifact@v3
83-
if: steps.upload-release.outcome == 'failure'
84-
with:
85-
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
86-
path: ./dist/*.whl
97+
overwrite: ${{ github.run_attempt == '1' && 'true' || 'false' }}

.github/workflows/build-wheels-0.1.67.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,31 @@ jobs:
6767
if ($env:AVXVER -eq 'AVX') {$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DLLAMA_AVX2=off'}
6868
if ($env:AVXVER -eq 'AVX512') {$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DLLAMA_AVX512=on'}
6969
python -m build --wheel -C--build-option=egg_info "-C--build-option=--tag-build=+cu$cudaVersion"
70+
71+
- uses: actions/upload-artifact@v3
72+
with:
73+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
74+
path: ./dist/*.whl
75+
76+
upload_release_assets:
77+
name: Upload wheels to a GitHub release
78+
needs: build_wheels
79+
runs-on: ubuntu-latest
80+
strategy:
81+
matrix:
82+
releasetag: ["AVX","wheels","AVX512"]
83+
84+
steps:
85+
- uses: actions/download-artifact@v3
86+
with:
87+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
7088

71-
- name: Upload files to a GitHub release
89+
- name: Upload ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }} wheels to a GitHub release
7290
id: upload-release
7391
uses: svenstaro/upload-release-action@2.6.1
74-
continue-on-error: true
7592
with:
76-
file: ./dist/*.whl
93+
file: ./**.whl
7794
tag: ${{ matrix.releasetag }}
7895
file_glob: true
7996
make_latest: false
80-
overwrite: true
81-
82-
- uses: actions/upload-artifact@v3
83-
if: steps.upload-release.outcome == 'failure'
84-
with:
85-
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
86-
path: ./dist/*.whl
97+
overwrite: ${{ github.run_attempt == '1' && 'true' || 'false' }}

.github/workflows/build-wheels-0.1.68.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,31 @@ jobs:
6767
if ($env:AVXVER -eq 'AVX') {$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DLLAMA_AVX2=off'}
6868
if ($env:AVXVER -eq 'AVX512') {$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DLLAMA_AVX512=on'}
6969
python -m build --wheel -C--build-option=egg_info "-C--build-option=--tag-build=+cu$cudaVersion"
70+
71+
- uses: actions/upload-artifact@v3
72+
with:
73+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
74+
path: ./dist/*.whl
75+
76+
upload_release_assets:
77+
name: Upload wheels to a GitHub release
78+
needs: build_wheels
79+
runs-on: ubuntu-latest
80+
strategy:
81+
matrix:
82+
releasetag: ["AVX","wheels","AVX512"]
83+
84+
steps:
85+
- uses: actions/download-artifact@v3
86+
with:
87+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
7088

71-
- name: Upload files to a GitHub release
89+
- name: Upload ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }} wheels to a GitHub release
7290
id: upload-release
7391
uses: svenstaro/upload-release-action@2.6.1
74-
continue-on-error: true
7592
with:
76-
file: ./dist/*.whl
93+
file: ./**.whl
7794
tag: ${{ matrix.releasetag }}
7895
file_glob: true
7996
make_latest: false
80-
overwrite: true
81-
82-
- uses: actions/upload-artifact@v3
83-
if: steps.upload-release.outcome == 'failure'
84-
with:
85-
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
86-
path: ./dist/*.whl
97+
overwrite: ${{ github.run_attempt == '1' && 'true' || 'false' }}

.github/workflows/build-wheels-0.1.70.yml

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,31 @@ jobs:
6969
if ($env:AVXVER -eq 'AVX') {$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DLLAMA_AVX2=off'}
7070
if ($env:AVXVER -eq 'AVX512') {$env:CMAKE_ARGS = $env:CMAKE_ARGS + ' -DLLAMA_AVX512=on'}
7171
python -m build --wheel -C--build-option=egg_info "-C--build-option=--tag-build=+cu$cudaVersion"
72+
73+
- uses: actions/upload-artifact@v3
74+
with:
75+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
76+
path: ./dist/*.whl
77+
78+
upload_release_assets:
79+
name: Upload wheels to a GitHub release
80+
needs: build_wheels
81+
runs-on: ubuntu-latest
82+
strategy:
83+
matrix:
84+
releasetag: ["AVX","wheels","AVX512"]
85+
86+
steps:
87+
- uses: actions/download-artifact@v3
88+
with:
89+
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
7290

73-
- name: Upload files to a GitHub release
91+
- name: Upload ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }} wheels to a GitHub release
7492
id: upload-release
7593
uses: svenstaro/upload-release-action@2.6.1
76-
continue-on-error: true
7794
with:
78-
file: ./dist/*.whl
95+
file: ./**.whl
7996
tag: ${{ matrix.releasetag }}
8097
file_glob: true
8198
make_latest: false
82-
overwrite: true
83-
84-
- uses: actions/upload-artifact@v3
85-
if: steps.upload-release.outcome == 'failure'
86-
with:
87-
name: ${{ matrix.releasetag == 'wheels' && 'AVX2' || matrix.releasetag }}
88-
path: ./dist/*.whl
99+
overwrite: ${{ github.run_attempt == '1' && 'true' || 'false' }}

0 commit comments

Comments
 (0)