Skip to content

Commit

Permalink
chore: add github ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
polvalente committed Jul 14, 2024
1 parent 36b3562 commit 5f7fff0
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/precompile.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
elixir 1.17.0-otp-26
erlang 26.0.2

0 comments on commit 5f7fff0

Please sign in to comment.