diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 7d18936..53f8412 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -58,17 +58,23 @@ jobs: working-directory: ./kinda_example run: | mix test --force - - name: Production build + - name: Precompile working-directory: ./kinda_example env: MIX_ENV: prod + ELIXIR_MAKE_CACHE_DIR: . run: | - mix - - name: Tar production native libraries + rm -rf _build + mix elixir_make.precompile + - name: Start mock server in the background working-directory: ./kinda_example - id: tar - env: - MIX_ENV: prod run: | - set -u - mix elixir_make.precompile + python3 -m http.server --directory . &> /dev/null & + sleep 3 + ps aux + - name: Test precompiled + working-directory: ./kinda_example + run: | + MIX_ENV=prod mix elixir_make.checksum --all --ignore-unavailable --only-local --print + mix clean + mix test --exclude vulkan --exclude todo diff --git a/kinda_example/mix.exs b/kinda_example/mix.exs index d92ba6e..019be35 100644 --- a/kinda_example/mix.exs +++ b/kinda_example/mix.exs @@ -12,8 +12,7 @@ defmodule KindaExample.MixProject do ] ++ [ make_precompiler: {:nif, Kinda.Precompiler}, - make_precompiler_url: - "https://github.com/beaver-lodge/beaver-prebuilt/releases/download/2023-12-23-1442" + make_precompiler_url: "http://127.0.0.1:8000/@{artefact_filename}" ] end