Skip to content

Commit

Permalink
ci: only on tagged
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Nov 21, 2022
1 parent 8201b77 commit fc07f00
Showing 1 changed file with 22 additions and 31 deletions.
53 changes: 22 additions & 31 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ commands:
target:
description: "Rust target to put in artifact"
type: string
version:
description: "Version to use for artifact"
type: string
suffix:
description: "Suffix that is on the binary"
type: string
Expand All @@ -118,11 +115,11 @@ commands:
mv target/<< parameters.target >>/release/cargo-shuttle<< parameters.suffix >> artifacts/shuttle<< parameters.suffix >>
mv LICENSE artifacts/
mv README.md artifacts/
7z a -ttar -so -an artifacts | 7z a -si artifacts/shuttle-<< parameters.version >>-<< parameters.target >>.tar.gz
7z a -ttar -so -an artifacts | 7z a -si artifacts/shuttle-${CIRCLE_TAG}-<< parameters.target >>.tar.gz
- persist_to_workspace:
root: artifacts
paths:
- shuttle-<< parameters.version >>-<< parameters.target >>.tar.gz
- shuttle-${CIRCLE_TAG}-<< parameters.target >>.tar.gz

jobs:
workspace-fmt:
Expand Down Expand Up @@ -294,8 +291,6 @@ jobs:
cargo build --release --package cargo-shuttle --features vendored-openssl --target << parameters.target >>
- make-artifact:
target: << parameters.target >>
# version: {{ .Environment.CIRCLE_TAG }}
version: version
build-binaries-windows:
executor:
name: win/server-2022
Expand All @@ -320,8 +315,6 @@ jobs:
..\.cargo\bin\cargo.exe build --release --package cargo-shuttle --features vendored-openssl --target x86_64-pc-windows-msvc
- make-artifact:
target: x86_64-pc-windows-msvc
# version: {{ .Environment.CIRCLE_TAG }}
version: version
suffix: ".exe"
build-binaries-mac:
macos:
Expand All @@ -340,8 +333,6 @@ jobs:
cargo build --release --package cargo-shuttle --features vendored-openssl --target x86_64-apple-darwin
- make-artifact:
target: x86_64-apple-darwin
# version: {{ .Environment.CIRCLE_TAG }}
version: version
publish-github-release:
docker:
- image: cimg/go:1.19.3
Expand Down Expand Up @@ -404,33 +395,33 @@ workflows:
image: ubuntu-2204:2022.04.1
target: x86_64-unknown-linux-musl
resource_class: medium
# # requires:
# # - build-and-push
# filters:
# tags:
# only: /^v.*/
# requires:
# - build-and-push
filters:
tags:
only: /^v.*/
- build-binaries-linux:
name: build-binaries-aarch64
image: ubuntu-2004:202101-01
target: aarch64-unknown-linux-musl
resource_class: arm.medium
# # requires:
# # - build-and-push
# filters:
# tags:
# only: /^v.*/
- build-binaries-windows
# requires:
# - build-and-push
# filters:
# tags:
# only: /^v.*/
- build-binaries-mac
# requires:
# - build-and-push
# filters:
# tags:
# only: /^v.*/
filters:
tags:
only: /^v.*/
- build-binaries-windows:
# requires:
# - build-and-push
filters:
tags:
only: /^v.*/
- build-binaries-mac:
# requires:
# - build-and-push
filters:
tags:
only: /^v.*/
- publish-github-release:
requires:
- build-binaries-x86_64
Expand Down

0 comments on commit fc07f00

Please sign in to comment.