Skip to content

Commit

Permalink
Merge pull request #63 from Chia-Network/pypa-rust
Browse files Browse the repository at this point in the history
Split centos pypa rust to workflows with docker action
  • Loading branch information
cmmarslender authored Jan 17, 2024
2 parents 3812c30 + 25c1daf commit 44eda80
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 44eda80

Please sign in to comment.