Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
matrix:
include:
- { target: x86_64-linux-gnu, os: ubuntu-latest }
- { target: aarch64-linux-gnu, os: ubuntu-latest }
- { target: aarch64-macos-none, os: macos-latest }

steps:
Expand All @@ -30,7 +31,11 @@ jobs:
elixir-version: '1.18'

- name: Build NIF
shell: bash
run: |
IFS=- read -r TARGET_ARCH TARGET_OS TARGET_ABI <<< "${{ matrix.target }}"
export TARGET_ARCH TARGET_OS TARGET_ABI

mix local.hex --force
mix local.rebar --force
mix deps.get
Expand Down
2 changes: 1 addition & 1 deletion lib/quickbeam/native.ex
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ defmodule QuickBEAM.Native do
base_url: "https://github.com/elixir-volt/quickbeam/releases/download/v#{@version}",
version: @version,
force_build: System.get_env("QUICKBEAM_BUILD") in ["1", "true"],
targets: ~w(x86_64-linux-gnu aarch64-macos-none),
targets: ~w(x86_64-linux-gnu aarch64-linux-gnu aarch64-macos-none),
zig_code_path: "quickbeam.zig",
optimize: :env,
c: [
Expand Down