Skip to content

Commit

Permalink
Tweak pipeline (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc committed Mar 8, 2024
1 parent 7b8b779 commit 62bb67b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 94 deletions.
8 changes: 1 addition & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,4 @@ workflows:
# This is mandatory to trigger a pipeline when pushing a tag
filters:
tags:
only: /.*(?<!dev\d{8})$/
- continuation/continue:
configuration_path: .circleci/dev-release-config.yml
# This is mandatory to trigger a pipeline when pushing a tag
filters:
tags:
only: /.*(?<=dev\d{8})$/
only: /.*/
80 changes: 0 additions & 80 deletions .circleci/dev-release-config.yml

This file was deleted.

42 changes: 35 additions & 7 deletions .circleci/release-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,28 @@ parameters:
type: string
default: ""

executors:
linux_x64_executor: # declares a reusable executor
docker:
- image: registry.hub.docker.com/secretflow/release-ci:latest
resource_class: 2xlarge
shell: /bin/bash --login -eo pipefail
linux_aarch64_executor:
docker:
- image: secretflow/release-ci-aarch64:latest
resource_class: arm.2xlarge
shell: /bin/bash --login -eo pipefail

# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
linux_publish:
docker:
- image: registry.hub.docker.com/secretflow/release-ci:latest
resource_class: 2xlarge
parameters:
python_ver:
type: string
shell: /bin/bash --login -eo pipefail
executor:
type: string
executor: <<parameters.executor>>
steps:
- checkout
- run:
Expand Down Expand Up @@ -110,20 +120,38 @@ workflows:
matrix:
parameters:
python_ver: [ "3.8", "3.9", "3.10", "3.11" ]
executor: ["linux_x64_executor", "linux_aarch64_executor"]
filters:
tags:
only: /.*/
only: /.*(?<!dev\d{8})$/
- macOS_x64_publish:
matrix:
parameters:
python_ver: [ '3.8', '3.9', '3.10', '3.11' ]
filters:
tags:
only: /.*/
only: /.*(?<!dev\d{8})$/
- macOS_arm64_publish:
matrix:
parameters:
python_ver: [ '3.8', '3.9', '3.10', '3.11' ]
filters:
tags:
only: /.*/
only: /.*(?<!dev\d{8})$/
- linux_publish:
name: linux_dev_publish
matrix:
parameters:
python_ver: [ "3.10" ]
executor: ["linux_x64_executor", "linux_aarch64_executor"]
filters:
tags:
only: /.*(?<=dev\d{8})$/
- macOS_arm64_publish:
name: macos_dev_publish
matrix:
parameters:
python_ver: [ '3.10' ]
filters:
tags:
only: /.*(?<=dev\d{8})$/

0 comments on commit 62bb67b

Please sign in to comment.