ci: Fix release pipeline for linux

This commit is contained in:
Alexis Sellier 2023-05-22 17:09:18 +02:00
parent 5a46ded318
commit 29507b550d
No known key found for this signature in database
1 changed files with 5 additions and 2 deletions

View File

@ -37,9 +37,10 @@ jobs:
image: ${{ matrix.docker_image }} image: ${{ matrix.docker_image }}
options: ${{ matrix.docker_options }} options: ${{ matrix.docker_options }}
run: | run: |
rustup target add ${{ matrix.target }}
staging="radicle-${{ matrix.target }}" staging="radicle-${{ matrix.target }}"
mkdir -p "$staging" mkdir -p "$staging"
rustup target add ${{ matrix.target }}
cargo build --target=${{ matrix.target }} --package=radicle-httpd --release cargo build --target=${{ matrix.target }} --package=radicle-httpd --release
cp target/${{ matrix.target }}/release/radicle-httpd "$staging"/ cp target/${{ matrix.target }}/release/radicle-httpd "$staging"/
@ -61,6 +62,7 @@ jobs:
image: ${{ matrix.docker_image }} image: ${{ matrix.docker_image }}
options: ${{ matrix.docker_options }} options: ${{ matrix.docker_options }}
run: | run: |
rustup target add ${{ matrix.target }}
staging="radicle-${{ matrix.target }}" staging="radicle-${{ matrix.target }}"
mkdir -p "$staging/debug" mkdir -p "$staging/debug"
@ -104,9 +106,9 @@ jobs:
- uses: dtolnay/rust-toolchain@1.67 - uses: dtolnay/rust-toolchain@1.67
- name: Build the release binaries - name: Build the release binaries
run: | run: |
rustup target add ${{ matrix.target }}
staging="radicle-${{ matrix.target }}" staging="radicle-${{ matrix.target }}"
mkdir -p "$staging" mkdir -p "$staging"
rustup target add ${{ matrix.target }}
cargo build --target ${{ matrix.target }} --package=radicle-httpd --release cargo build --target ${{ matrix.target }} --package=radicle-httpd --release
cp target/${{ matrix.target }}/release/radicle-httpd "$staging"/ cp target/${{ matrix.target }}/release/radicle-httpd "$staging"/
@ -124,6 +126,7 @@ jobs:
cp "$staging.tar.gz" "$staging"/ cp "$staging.tar.gz" "$staging"/
- name: Build the debug binaries - name: Build the debug binaries
run: | run: |
rustup target add ${{ matrix.target }}
staging="radicle-${{ matrix.target }}" staging="radicle-${{ matrix.target }}"
mkdir -p "$staging/debug" mkdir -p "$staging/debug"