From 6bab5b3ac19fd0fa31f15d0582ecb3002108e8a0 Mon Sep 17 00:00:00 2001 From: 1xstj <106580853+1xstj@users.noreply.github.com> Date: Tue, 19 Sep 2023 10:49:04 +0530 Subject: [PATCH] feat: build docker img and binary with txpool feature (#261) --- .github/workflows/publish-docker.yml | 6 +++--- .github/workflows/publish-release-binary.yml | 15 +++++++++++++-- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index 8b6032f69..a2846d4cc 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -25,9 +25,9 @@ jobs: - binary: tangle-standalone features: integration-tests image_name: tangle-standalone-integration-tests - # - binary: tangle-parachain - # features: default - # image_name: tangle-parachain + - binary: tangle-standalone + features: txpool + image_name: tangle-standalone-txpool permissions: contents: read packages: write diff --git a/.github/workflows/publish-release-binary.yml b/.github/workflows/publish-release-binary.yml index ac4a5f5df..0c407a2b0 100644 --- a/.github/workflows/publish-release-binary.yml +++ b/.github/workflows/publish-release-binary.yml @@ -27,7 +27,7 @@ jobs: - name: Install Protobuf run: sudo apt-get install protobuf-compiler - - name: Build + - name: Build binary run: cargo build --release -p tangle-standalone --locked - name: Upload binaries to release @@ -38,4 +38,15 @@ jobs: asset_name: tangle-standalone-linux-amd64 tag: ${{ github.ref }} overwrite: true - body: "Tangle Standalone Binary" \ No newline at end of file + + - name: Build binary with txpool + run: cargo build --release -p tangle-standalone --locked --features txpool + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/release/tangle-standalone + asset_name: tangle-standalone-txpool-linux-amd64 + tag: ${{ github.ref }} + overwrite: true \ No newline at end of file