From 5f7fff0e90f75ff8750b2b459feefe13143a7fd2 Mon Sep 17 00:00:00 2001 From: Paulo Valente <16843419+polvalente@users.noreply.github.com> Date: Sun, 14 Jul 2024 02:40:25 -0300 Subject: [PATCH] chore: add github ci workflow --- .github/workflows/precompile.yml | 46 ++++++++++++++++++++++++++++++++ .tool-versions | 2 ++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/precompile.yml create mode 100644 .tool-versions diff --git a/.github/workflows/precompile.yml b/.github/workflows/precompile.yml new file mode 100644 index 0000000..6cfe590 --- /dev/null +++ b/.github/workflows/precompile.yml @@ -0,0 +1,46 @@ +name: precompile + +on: + push: + branches: + - pv-feat/precompile-artifacts + tags: + - "v*" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + runs-on: macos-14 + env: + MIX_ENV: prod + NX_IREE_PREFER_PRECOMPILED: false + strategy: + fail-fast: false + matrix: + NIF_VERSION: "2.16" + OTP_VERSION: "26.0" + ELIXIR_VERSION: "1.17.0" + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: Install asdf and tools + uses: asdf-vm/actions/install@v3 + + - name: Setup dependencies + run: | + mix local.hex --force + mix local.rebar --force + + - name: Cache mix dependencies + id: cache-mix-deps + uses: actions/cache@v4 + with: + key: deps-${{ hashFiles('mix.lock') }} + path: | + ./deps + - name: Get mix deps + if: steps.cache-mix-deps.outputs.cache-hit != 'true' + run: mix deps.get diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..61b4bdc --- /dev/null +++ b/.tool-versions @@ -0,0 +1,2 @@ +elixir 1.17.0-otp-26 +erlang 26.0.2