From 29507b550d6dcea5082baf1f5049ef93b8cc34a8 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Mon, 22 May 2023 17:09:18 +0200 Subject: [PATCH] ci: Fix release pipeline for linux --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eedec1f6..83a2b815 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,9 +37,10 @@ jobs: image: ${{ matrix.docker_image }} options: ${{ matrix.docker_options }} run: | + rustup target add ${{ matrix.target }} staging="radicle-${{ matrix.target }}" mkdir -p "$staging" - rustup target add ${{ matrix.target }} + cargo build --target=${{ matrix.target }} --package=radicle-httpd --release cp target/${{ matrix.target }}/release/radicle-httpd "$staging"/ @@ -61,6 +62,7 @@ jobs: image: ${{ matrix.docker_image }} options: ${{ matrix.docker_options }} run: | + rustup target add ${{ matrix.target }} staging="radicle-${{ matrix.target }}" mkdir -p "$staging/debug" @@ -104,9 +106,9 @@ jobs: - uses: dtolnay/rust-toolchain@1.67 - name: Build the release binaries run: | + rustup target add ${{ matrix.target }} staging="radicle-${{ matrix.target }}" mkdir -p "$staging" - rustup target add ${{ matrix.target }} cargo build --target ${{ matrix.target }} --package=radicle-httpd --release cp target/${{ matrix.target }}/release/radicle-httpd "$staging"/ @@ -124,6 +126,7 @@ jobs: cp "$staging.tar.gz" "$staging"/ - name: Build the debug binaries run: | + rustup target add ${{ matrix.target }} staging="radicle-${{ matrix.target }}" mkdir -p "$staging/debug"