From 8387b8c84bd7f2eeeb16e1b4bdaf290520ee2401 Mon Sep 17 00:00:00 2001 From: Alexandr Bogomiakov Date: Thu, 24 Jul 2025 00:42:28 +0300 Subject: [PATCH] Fix musl build --- .github/workflows/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bc4f269..d4cbb84 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -82,6 +82,7 @@ jobs: uses: gmiam/rust-musl-action@master with: args: | + apt-get update && apt-get install -y pkg-config cargo build --target ${{ matrix.build_target }} --release --no-default-features --features server - name: Build MacOS @@ -149,6 +150,7 @@ jobs: - name: Check if artifact exists id: check_artifact + shell: bash run: | if [ -f "${{ env.BINARY_NAME }}_${{ matrix.platform_name }}/${{ env.BINARY_NAME }}${{ matrix.platform_name == 'windows-amd64' && '.exe' || '' }}" ]; then echo "artifact_exists=true" >> $GITHUB_OUTPUT @@ -157,7 +159,7 @@ jobs: fi - name: Upload Release Asset - if: steps.check_artifact.outputs.artifact_exists == 'true' + if: steps.check_artifact.outputs.artifact_exists == 'true' && needs.release.outputs.upload_url != '' uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}