From a1fd4fb75ec809a035dc8dbb1aeaf1652d28772e Mon Sep 17 00:00:00 2001 From: Carson Call Date: Tue, 7 Jul 2026 15:10:55 -0700 Subject: [PATCH 1/2] Enable aarch64-unknown-linux-musl builds, bump to 0.1.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Uncomments the aarch64-musl matrix entry (needed for Jump's Alpine Docker migration — RustlerPrecompiled's default targets already include it, so consumers on Alpine ARM try to download it and 404). The same cross/rustler stack builds this target fine in Jump-App/rrule today. Also moves the x86_64-gnu job off the retired ubuntu-20.04 runner image (jobs targeting it queue forever) to ubuntu-22.04. Co-Authored-By: Claude Fable 5 --- .github/workflows/release.yml | 4 ++-- mix.exs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d4fc0c4..1ffc19c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,11 +22,11 @@ jobs: job: - { target: aarch64-apple-darwin , os: macos-latest } - { target: x86_64-apple-darwin , os: macos-latest } - - { target: x86_64-unknown-linux-gnu , os: ubuntu-20.04 } + - { target: x86_64-unknown-linux-gnu , os: ubuntu-22.04 } - { target: x86_64-unknown-linux-musl , os: ubuntu-latest, use-cross: true } - { target: arm-unknown-linux-gnueabihf , os: ubuntu-latest, use-cross: true } - { target: aarch64-unknown-linux-gnu , os: ubuntu-latest, use-cross: true } - # - { target: aarch64-unknown-linux-musl , os: ubuntu-latest, use-cross: true } + - { target: aarch64-unknown-linux-musl , os: ubuntu-latest, use-cross: true } # - { target: riscv64gc-unknown-linux-gnu , os: ubuntu-latest, use-cross: true } # - { target: x86_64-pc-windows-gnu , os: windows-2019 } # - { target: x86_64-pc-windows-msvc , os: windows-2019 } diff --git a/mix.exs b/mix.exs index 384435c..d5aa100 100644 --- a/mix.exs +++ b/mix.exs @@ -6,7 +6,7 @@ defmodule LRS.MixProject do def project do [ app: :lrs, - version: "0.1.6", + version: "0.1.7", elixir: "~> 1.17", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, From b7d9b55a8cc652a22d6a63b0d33f70eb14f2aac3 Mon Sep 17 00:00:00 2001 From: Carson Call Date: Tue, 7 Jul 2026 15:16:08 -0700 Subject: [PATCH 2/2] Add -crt-static rustflags for aarch64-unknown-linux-musl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this, rustc's default +crt-static on musl targets fails with 'cannot produce cdylib ... does not support these crate types' — the error that blocked this target originally. Mirrors the existing x86_64-unknown-linux-musl entry (and Jump-App/rrule's working config). Co-Authored-By: Claude Fable 5 --- native/lrs/.cargo/config.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/native/lrs/.cargo/config.toml b/native/lrs/.cargo/config.toml index 5158329..af590aa 100644 --- a/native/lrs/.cargo/config.toml +++ b/native/lrs/.cargo/config.toml @@ -10,6 +10,13 @@ rustflags = [ "-C", "target-feature=-crt-static" ] +# Same as above — required to produce a cdylib on musl (rustc defaults to +# +crt-static for musl targets, which cannot build dynamic libraries). +[target.aarch64-unknown-linux-musl] +rustflags = [ + "-C", "target-feature=-crt-static" +] + # Provides a small build size, but takes more time to build. [profile.release] lto = true