winglian commited on
Commit
1590858
1 Parent(s): ea14ce0

fix docker run

Browse files
.github/workflows/build-ggml-cpp-wheel.yml CHANGED
@@ -27,9 +27,12 @@ jobs:
27
  - name: Build Docker image
28
  run: docker build . -t artifact-builder --build-arg CTRANSFORMERS_VERSION=${{ steps.separate.outputs.prefix }} -f Dockerfile-ggml-cpp-wheel
29
 
 
 
 
30
  - name: Copy GPU artifact from Docker container
31
  run: |
32
- docker cp artifact-builder:/build/dist/ctransformers-${{ steps.separate.outputs.prefix }}-cp38-cp38-linux_x86_64.whl ./ctransformers-${{ steps.separate.outputs.prefix }}-cp38-cp38-linux_x86_64.whl
33
 
34
  - name: Upload artifacts
35
  uses: actions/upload-artifact@v3
 
27
  - name: Build Docker image
28
  run: docker build . -t artifact-builder --build-arg CTRANSFORMERS_VERSION=${{ steps.separate.outputs.prefix }} -f Dockerfile-ggml-cpp-wheel
29
 
30
+ - name: Run Docker container
31
+ run: docker run --name my-artifact-builder artifact-builder
32
+
33
  - name: Copy GPU artifact from Docker container
34
  run: |
35
+ docker cp my-artifact-builder:/build/dist/ctransformers-${{ 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
@@ -27,9 +27,12 @@ jobs:
27
  - name: Build Docker image
28
  run: docker build . -t artifact-builder --build-arg LLAMA_CPP_VERSION=${{ steps.separate.outputs.prefix }} -f Dockerfile-llama-cpp-wheel
29
 
 
 
 
30
  - name: Copy GPU artifact from Docker container
31
  run: |
32
- docker cp 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
33
 
34
  - name: Upload artifacts
35
  uses: actions/upload-artifact@v3
 
27
  - name: Build Docker image
28
  run: docker build . -t artifact-builder --build-arg LLAMA_CPP_VERSION=${{ steps.separate.outputs.prefix }} -f Dockerfile-llama-cpp-wheel
29
 
30
+ - name: Run Docker container
31
+ run: docker run --name my-artifact-builder artifact-builder
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