fix build
Some checks failed
Build / Build - linux (push) Successful in 3m33s
Build / Build - macos (push) Failing after 9s
Build / Build - windows (push) Successful in 2m55s

This commit is contained in:
2025-12-11 21:01:25 +01:00
parent f9f81e6dcf
commit e6c30dc403
3 changed files with 25 additions and 17 deletions

View File

@@ -21,18 +21,18 @@ jobs:
artifact_name: rlogg-linux-x86_64
binary_extension: ""
setup_cmd: ""
# - platform: macos
# docker_image: messense/cargo-zigbuild:latest
# target: x86_64-apple-darwin
# artifact_name: rlogg-macos-x86_64
# binary_extension: ""
# setup_cmd: ""
# - platform: windows
# docker_image: rust:latest
# target: x86_64-pc-windows-gnu
# artifact_name: rlogg-windows-x86_64
# binary_extension: ".exe"
# setup_cmd: "apt-get update && apt-get install -y mingw-w64"
- platform: macos
docker_image: gitea.staspast.click/stas/rust-node-builder:v2
target: x86_64-apple-darwin
artifact_name: rlogg-macos-x86_64
binary_extension: ""
setup_cmd: ""
- platform: windows
docker_image: gitea.staspast.click/stas/rust-node-builder:v3
target: x86_64-pc-windows-gnu
artifact_name: rlogg-windows-x86_64
binary_extension: ".exe"
setup_cmd: ""
steps:
- name: Checkout code
@@ -56,9 +56,11 @@ jobs:
run: |
if [ "${{ matrix.platform }}" = "macos" ]; then
cargo zigbuild --release --target ${{ matrix.target }}
else
# Define RUSTFLAGS to use the system linker (cc) and disable debug compression
elif [ "${{ matrix.platform }}" = "linux" ]; then
cargo build --release
else
# Cross-compile for other targets (e.g., Windows)
cargo build --release --target ${{ matrix.target }}
fi
# Show sccache statistics