winglian commited on
Commit
b5da0d9
·
1 Parent(s): e31a4eb

more fixes to actions

Browse files
.github/workflows/build-ggml-cpp-wheel.yml CHANGED
@@ -1,14 +1,12 @@
1
  name: Build wheel in Docker
2
 
3
  on:
4
- push:
5
- tags:
6
- - '*-ggml' # Will match tags ending with -ggml
7
  release:
8
  types: [published]
9
 
10
  jobs:
11
  build:
 
12
  runs-on: self-hosted
13
  permissions:
14
  contents: write
@@ -34,7 +32,7 @@ jobs:
34
 
35
  - name: Copy GPU artifact from Docker container
36
  run: |
37
- docker cp my-artifact-builder:/build/dists/llama_cpp_python-gpu-${{ steps.separate.outputs.prefix }}-cp38-cp38-linux_x86_64.whl ./llama_cpp_python-gpu-0.1.53-cp38-cp38-linux_x86_64.whl
38
 
39
  - name: Upload artifacts
40
  uses: actions/upload-artifact@v3
 
1
  name: Build wheel in Docker
2
 
3
  on:
 
 
 
4
  release:
5
  types: [published]
6
 
7
  jobs:
8
  build:
9
+ if: startsWith(github.event.release.tag_name, '*-ggml')
10
  runs-on: self-hosted
11
  permissions:
12
  contents: write
 
32
 
33
  - name: Copy GPU artifact from Docker container
34
  run: |
35
+ docker cp my-artifact-builder:/build/dists/ctransformers-gpu-${{ steps.separate.outputs.prefix }}-cp38-cp38-linux_x86_64.whl ./ctransformers-${{ steps.separate.outputs.prefix }}-cp38-cp38-linux_x86_64.whl
36
 
37
  - name: Upload artifacts
38
  uses: actions/upload-artifact@v3
.github/workflows/build-llama-cpp-wheel.yml CHANGED
@@ -1,14 +1,12 @@
1
  name: Build wheel in Docker
2
 
3
  on:
4
- push:
5
- tags:
6
- - '*-llama' # Will match tags ending with -llama
7
  release:
8
  types: [published]
9
 
10
  jobs:
11
  build:
 
12
  runs-on: self-hosted
13
  permissions:
14
  contents: write
@@ -34,7 +32,7 @@ jobs:
34
 
35
  - name: Copy GPU artifact from Docker container
36
  run: |
37
- docker cp my-artifact-builder:/build/dists/llama_cpp_python-gpu-${{ steps.separate.outputs.prefix }}-cp38-cp38-linux_x86_64.whl ./llama_cpp_python-gpu-0.1.53-cp38-cp38-linux_x86_64.whl
38
 
39
  - name: Upload artifacts
40
  uses: actions/upload-artifact@v3
 
1
  name: Build wheel in Docker
2
 
3
  on:
 
 
 
4
  release:
5
  types: [published]
6
 
7
  jobs:
8
  build:
9
+ if: startsWith(github.event.release.tag_name, '*-llama')
10
  runs-on: self-hosted
11
  permissions:
12
  contents: write
 
32
 
33
  - name: Copy GPU artifact from Docker container
34
  run: |
35
+ docker cp my-artifact-builder:/build/dists/llama_cpp_python-gpu-${{ steps.separate.outputs.prefix }}-cp38-cp38-linux_x86_64.whl ./llama_cpp_python-gpu-${{ steps.separate.outputs.prefix }}-cp38-cp38-linux_x86_64.whl
36
 
37
  - name: Upload artifacts
38
  uses: actions/upload-artifact@v3