Skip to content

Commit

Permalink
Split the manylinux build to two workflows using the docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Jan 17, 2024
1 parent f09186a commit 47ab915
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 93 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-manylinux2014-cuda-aarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build manylinux2014 aarch64 + cuda image

on:
push:
branches:
- main
paths:
- 'manylinux2014_cuda_aarch64/*'
- '.github/workflows/build-manylinux2014-cuda-aarch64.yml'
pull_request:
paths:
- 'manylinux2014_cuda_aarch64/*'
- '.github/workflows/build-manylinux2014-cuda-aarch64.yml'
workflow_dispatch:
schedule:
- cron: '30 12 * * 5'

concurrency:
# SHA is added to the end if on `main` to let all main workflows run
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }}
cancel-in-progress: true

jobs:
package:
uses: Chia-Network/actions/.github/workflows/docker-build.yaml@main
with:
docker-platforms: linux/arm64
docker-context: ./manylinux2014_cuda_aarch64
dockerfile: ./manylinux2014_cuda_aarch64/Dockerfile
image_subpath: manylinux2014_cuda_aarch64
alternate-latest-mode: true
31 changes: 31 additions & 0 deletions .github/workflows/build-manylinux2014-cuda-x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build manylinux2014 x86_64 + cuda image

on:
push:
branches:
- main
paths:
- 'manylinux2014_cuda_x86_64/*'
- '.github/workflows/build-manylinux2014-cuda-x86_64.yml'
pull_request:
paths:
- 'manylinux2014_cuda_x86_64/*'
- '.github/workflows/build-manylinux2014-cuda-x86_64.yml'
workflow_dispatch:
schedule:
- cron: '30 12 * * 5'

concurrency:
# SHA is added to the end if on `main` to let all main workflows run
group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == 'refs/heads/main' && github.sha || '' }}
cancel-in-progress: true

jobs:
package:
uses: Chia-Network/actions/.github/workflows/docker-build.yaml@main
with:
docker-platforms: linux/amd64
docker-context: ./manylinux2014_cuda_x86_64
dockerfile: ./manylinux2014_cuda_x86_64/Dockerfile
image_subpath: manylinux2014_cuda_x86_64
alternate-latest-mode: true
93 changes: 0 additions & 93 deletions .github/workflows/build-manylinux2014-cuda.yml

This file was deleted.

0 comments on commit 47ab915

Please sign in to comment.