Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
warmwaffles committed Sep 13, 2024
1 parent db8216a commit be2d8b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/precompile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: precompile

on:
push:
tags:
- 'v*'
branches:
- 'precompile-woes'

permissions:
contents: write
Expand All @@ -19,18 +19,18 @@ jobs:
fail-fast: false
matrix:
job:
- { os: "ubuntu-20.04", otp: "23", elixir: "1.14" }
- { os: "macos-11", otp: "24.3.4.16", elixir: "1.14.3"}
- { os: "windows-2019", otp: "25", elixir: "1.14"}
- { os: "ubuntu-20.04", otp: "25.0", elixir: "1.14" }
- { os: "macos-12", otp: "25.0", elixir: "1.14.3"}
- { os: "windows-2019", otp: "25.0", elixir: "1.14"}
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-beam@v1
if: matrix.job.os != 'macos-11'
if: matrix.job.os != 'macos-12'
with:
otp-version: ${{ matrix.job.otp }}
elixir-version: ${{ matrix.job.elixir }}
- name: Install erlang and elixir
if: matrix.job.os == 'macos-11'
if: matrix.job.os == 'macos-12'
run: |
export ROOT_DIR=$(pwd)
Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
- name: Create precompiled library
shell: bash
run: |
if [ "${{ matrix.job.os }}" = "macos-11" ]; then
if [ "${{ matrix.job.os }}" = "macos-12" ]; then
export PATH=$(pwd)/cache/otp/usr/local/bin:$(pwd)/./cache/elixir/elixir-${{ matrix.job.elixir }}/bin:${PATH}
export ERL_ROOTDIR=$(pwd)/cache/otp/usr/local/lib/erlang
elif [ "${{ matrix.job.os }}" = "ubuntu-20.04" ]; then
Expand All @@ -97,9 +97,3 @@ jobs:
mkdir -p "${ELIXIR_MAKE_CACHE_DIR}"
mix deps.get
mix elixir_make.precompile
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
cache/*.tar.gz
3 changes: 0 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ defmodule Exqlite.MixProject do
"aarch64-linux-gnu" => "aarch64-linux-gnu-",
"riscv64-linux-gnu" => "riscv64-linux-gnu-"
},
{:unix, :darwin} => %{
:include_default_ones => true
},
{:win32, :nt} => %{
:include_default_ones => true
}
Expand Down

0 comments on commit be2d8b7

Please sign in to comment.