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, 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