drop otp down to 25 for NIF version 2.16 #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: precompile | |
on: | |
push: | |
branches: | |
- 'precompile-woes' | |
permissions: | |
contents: write | |
jobs: | |
linux-precompile: | |
runs-on: ubuntu-20.04 | |
env: | |
MIX_ENV: prod | |
strategy: | |
matrix: | |
job: | |
- {otp: "27", elixir: "1.17", nif: "2.17"} | |
- {otp: "25", elixir: "1.16", nif: "2.16"} | |
name: Linux x86_64 - OTP ${{ matrix.job.otp }} - Elixir ${{ matrix.job.elixir }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.job.otp }} | |
elixir-version: ${{ matrix.job.elixir }} | |
- name: Install system dependecies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y build-essential automake autoconf pkg-config bc m4 unzip zip \ | |
gcc g++ \ | |
gcc-i686-linux-gnu g++-i686-linux-gnu \ | |
gcc-aarch64-linux-gnu g++-aarch64-linux-gnu \ | |
gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf \ | |
gcc-riscv64-linux-gnu g++-riscv64-linux-gnu \ | |
gcc-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu \ | |
gcc-s390x-linux-gnu g++-s390x-linux-gnu | |
- name: Get musl cross-compilers | |
run: | | |
for musl_arch in x86_64 aarch64 riscv64 | |
do | |
wget "https://musl.cc/${musl_arch}-linux-musl-cross.tgz" -O "${musl_arch}-linux-musl-cross.tgz" | |
tar -xf "${musl_arch}-linux-musl-cross.tgz" | |
done | |
- name: Create precompiled x86_64 library | |
run: | | |
export PATH="$(pwd)/x86_64-linux-musl-cross/bin:${PATH}" | |
export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache | |
mkdir -p "${ELIXIR_MAKE_CACHE_DIR}" | |
mix deps.get | |
mix elixir_make.precompile | |
- name: Create precompiled aarch64 library | |
run: | | |
export PATH="$(pwd)/aarch64-linux-musl-cross/bin:${PATH}" | |
export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache | |
mkdir -p "${ELIXIR_MAKE_CACHE_DIR}" | |
mix deps.get | |
mix elixir_make.precompile | |
- name: Create precompiled riscv64 library | |
run: | | |
export PATH="$(pwd)/riscv64-linux-musl-cross/bin:${PATH}" | |
export ELIXIR_MAKE_CACHE_DIR=$(pwd)/cache | |
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 |