From 0946b5a4a26635f8995ea082668cbd2d771ffba2 Mon Sep 17 00:00:00 2001 From: Aksiome <54895777+aksiome@users.noreply.github.com> Date: Sun, 5 Jan 2025 19:53:36 +0100 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f8613c..5d75bfd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,8 +11,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: cargo build --verbose --release + - run: sudo apt-get update && sudo apt-get install -y musl-tools libssl-dev + - run: rustup target add x86_64-unknown-linux-musl + - run: cargo build --target x86_64-unknown-linux-musl --verbose --release - uses: actions/upload-artifact@v4 with: name: bookshelf-api - path: target/release/bookshelf-api + path: target/x86_64-unknown-linux-musl/release/bookshelf-api