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