diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d854c5232..82f3f1ee21 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -56,12 +56,6 @@ jobs: profile: minimal toolchain: 1.69.0 override: true - - name: Build release libraries - run: cargo build --release -p polar-c-api - - name: Build x86_64 release musl library - run: | - rustup target add x86_64-unknown-linux-musl - RUSTFLAGS="-C target-feature=-crt-static" cargo build --target x86_64-unknown-linux-musl --release -p polar-c-api - name: Install cross env: GH_TOKEN: ${{ github.token }} @@ -76,6 +70,12 @@ jobs: run: | rustup target add aarch64-unknown-linux-gnu RUSTFLAGS="-C target-feature=-crt-static" ./cross build --target aarch64-unknown-linux-gnu --release -p polar-c-api + - name: Build x86_64 release libraries + run: cargo build --release -p polar-c-api + - name: Build x86_64 release musl library + run: | + rustup target add x86_64-unknown-linux-musl + RUSTFLAGS="-C target-feature=-crt-static" cargo build --target x86_64-unknown-linux-musl --release -p polar-c-api - name: Rename static lib run: mv target/release/libpolar.a target/libpolar-${{runner.os}}.a - name: Rename x86_64 static lib