Skip to content

Commit

Permalink
create ci-build channel for test binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Sep 2, 2024
1 parent d6ada0f commit 6b21aba
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-ci-bins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: publish ci bins
on:
push:
branches:
# make binaries which may be ahead of releases to use in CI jobs
- "ci-bins"
jobs:
publish:
permissions:
write-all
name: publish
runs-on: ubuntu-latest
steps:
# NOTE: for debugging CI this allow shell access to github runner. Will print out tmate.io terminal url
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# detached: true
# timeout-minutes: 15

- name: checkout
uses: actions/checkout@v3

- name: setup env
uses: ./.github/actions/build_env

- name: build libra cli release
# size and performance optimized binary with profile.cli
# NOTE: this is uses "testing" feature since some Move tests
# depend on it
run: cargo b --features testing --release -p libra

- name: libra publish
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/libra
tag: ${{ github.ref }}
overwrite: true
file_glob: true
3 changes: 3 additions & 0 deletions tools/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ tokio = { workspace = true }
[build-dependencies]
anyhow = { workspace = true }
vergen = { workspace = true }

[features]
testing = ["diem-vm/testing"]

0 comments on commit 6b21aba

Please sign in to comment.