Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix release builds #436

Merged
merged 1 commit into from
Oct 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ jobs:
arch: "x86_64"
- set-env-path:
arch: "x86_64"
- setup-sccache:
arch: "x86_64"
- restore-sccache-cache
# - setup-sccache:
# arch: "x86_64"
# - restore-sccache-cache
- aws-cli/setup:
profile-name: default
- run:
Expand All @@ -379,7 +379,7 @@ jobs:
path: ./target/ci/
os: linux
arch: amd64
- save-sccache-cache
# - save-sccache-cache

build_release_aarch64:
executor: arm-executor
Expand All @@ -390,9 +390,9 @@ jobs:
arch: "aarch_64"
- set-env-path:
arch: "aarch64"
- setup-sccache:
arch: "aarch64"
- restore-sccache-cache
# - setup-sccache:
# arch: "aarch64"
# - restore-sccache-cache
- aws-cli/setup:
profile-name: default
- run:
Expand All @@ -406,7 +406,7 @@ jobs:
path: ./target/ci/
os: linux
arch: aarch64
- save-sccache-cache
# - save-sccache-cache

build_release_osx:
#executor: mac-executor
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,28 @@ jobs:
aws s3 cp ./target/ci/iroh s3://vorc/iroh-${RELEASE_OS}-${RELEASE_ARCH}-${GITHUB_SHA::7} --no-progress

- name: push release latest
if: matrix.os != 'macOS-latest' && matrix.rust=='stable' && github.ref_name=='main'
if: matrix.os == 'macOS-latest' && matrix.rust=='stable' && github.ref_name=='main'
run: |
aws s3 cp ./target/ci/iroh-gateway s3://vorc/iroh-gateway-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
aws s3 cp ./target/ci/iroh-p2p s3://vorc/iroh-p2p-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
aws s3 cp ./target/ci/iroh-store s3://vorc/iroh-store-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress
aws s3 cp ./target/ci/iroh s3://vorc/iroh-${RELEASE_OS}-${RELEASE_ARCH}-latest --no-progress

- name: push release aarch64
if: matrix.os == 'macOS-latest' && matrix.rust=='stable' && github.ref_name=='main'
run: |
aws s3 cp ./target/aarch64-apple-darwin/ci/iroh-gateway s3://vorc/iroh-gateway-${RELEASE_OS}-aarch64-${GITHUB_SHA::7} --no-progress
aws s3 cp ./target/aarch64-apple-darwin/ci/iroh-p2p s3://vorc/iroh-p2p-${RELEASE_OS}-aarch64-${GITHUB_SHA::7} --no-progress
aws s3 cp ./target/aarch64-apple-darwin/ci/iroh-store s3://vorc/iroh-store-${RELEASE_OS}-aarch64-${GITHUB_SHA::7} --no-progress
aws s3 cp ./target/aarch64-apple-darwin/ci/iroh s3://vorc/iroh-${RELEASE_OS}-aarch64-${GITHUB_SHA::7} --no-progress

- name: push release latest aarch64
if: matrix.os == 'macOS-latest' && matrix.rust=='stable' && github.ref_name=='main'
run: |
aws s3 cp ./target/aarch64-apple-darwin/ci/iroh-gateway s3://vorc/iroh-gateway-${RELEASE_OS}-aarch64-latest --no-progress
aws s3 cp ./target/aarch64-apple-darwin/ci/iroh-p2p s3://vorc/iroh-p2p-${RELEASE_OS}-aarch64-latest --no-progress
aws s3 cp ./target/aarch64-apple-darwin/ci/iroh-store s3://vorc/iroh-store-${RELEASE_OS}-aarch64-latest --no-progress
aws s3 cp ./target/aarch64-apple-darwin/ci/iroh s3://vorc/iroh-${RELEASE_OS}-aarch64-latest --no-progress

- name: Print sccache stats
run: sccache --show-stats
Expand Down