From 29c8c54fd7995f876823773179474c4f4d16aff4 Mon Sep 17 00:00:00 2001 From: "Carpenter, Adam (CORP)" Date: Tue, 12 Oct 2021 16:28:25 -0400 Subject: ci: include angelsharkd in workflow --- .github/workflows/publish.yml | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1f92c63..5cf42ec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,7 +46,7 @@ jobs: override: true target: ${{ matrix.target }} - - name: Build + - name: Build angelsharkcli uses: actions-rs/cargo@v1 with: use-cross: ${{ matrix.use-cross }} @@ -54,11 +54,19 @@ jobs: args: --target ${{ matrix.target }} --release --locked --bin angelsharkcli - - name: Strip binary + - name: Build angelsharkd + uses: actions-rs/cargo@v1 + with: + use-cross: ${{ matrix.use-cross }} + command: build + args: + --target ${{ matrix.target }} --release --locked --bin angelsharkd + + - name: Strip binaries if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' - run: strip target/${{ matrix.target }}/release/angelsharkcli + run: strip target/${{ matrix.target }}/release/angelshark* - - name: Upload nix binaries to release + - name: Upload angelsharkcli nix binaries to release if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' uses: svenstaro/upload-release-action@v1-release with: @@ -69,7 +77,18 @@ jobs: }} tag: ${{ github.ref }} - - name: Upload Windows binaries to release + - name: Upload angelsharkd nix binaries to release + if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/${{ matrix.target }}/release/angelsharkd + asset_name: + angelsharkd-${{ steps.version.outputs.VERSION }}-${{ matrix.target + }} + tag: ${{ github.ref }} + + - name: Upload angelsharkcli Windows binaries to release if: matrix.os == 'windows-latest' uses: svenstaro/upload-release-action@v1-release with: @@ -79,3 +98,14 @@ jobs: angelsharkcli-${{ steps.version.outputs.VERSION }}-${{ matrix.target }}.exe tag: ${{ github.ref }} + + - name: Upload angelsharkd binaries to release + if: matrix.os == 'windows-latest' + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/${{ matrix.target }}/release/angelsharkd.exe + asset_name: + angelsharkd-${{ steps.version.outputs.VERSION }}-${{ matrix.target + }}.exe + tag: ${{ github.ref }} -- cgit v1.2.3