Skip to content

Commit

Permalink
Split centos pypa rust to workflows with docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Jan 17, 2024
1 parent 3812c30 commit 25c1daf
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 92 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-centos-pypa-rust-aarch64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Centos Pypa Aarch64 Rust Image

on:
push:
branches:
- main
paths:
- 'centos-pypa-aarch64/*'
- '.github/workflows/build-centos-pypa-rust-aarch64.yml'
pull_request:
paths:
- 'centos-pypa-aarch64/*'
- '.github/workflows/build-centos-pypa-rust-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: ./centos-pypa-rust-aarch64
dockerfile: ./centos-pypa-rust-aarch64/Dockerfile
image_subpath: centos-pypa-rust-aarch64
alternate-latest-mode: true
31 changes: 31 additions & 0 deletions .github/workflows/build-centos-pypa-rust-x86_64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Centos Pypa x86_64 Rust Image

on:
push:
branches:
- main
paths:
- 'centos-pypa-x86_64/*'
- '.github/workflows/build-centos-pypa-rust-x86_64.yml'
pull_request:
paths:
- 'centos-pypa-x86_64/*'
- '.github/workflows/build-centos-pypa-rust-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: ./centos-pypa-rust-x86_64
dockerfile: ./centos-pypa-rust-x86_64/Dockerfile
image_subpath: centos-pypa-rust-x86_64
alternate-latest-mode: true
92 changes: 0 additions & 92 deletions .github/workflows/build-centos-pypa-rust.yml

This file was deleted.

0 comments on commit 25c1daf

Please sign in to comment.