Release 0.1.1 (#7) #5
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: | |
tags: | |
- 'v*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
env: | |
MIX_ENV: prod | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: 25 | |
elixir-version: 1.14 | |
- 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: Precompile | |
run: | | |
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 | |
macos: | |
runs-on: macos-11 | |
env: | |
MIX_ENV: prod | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install erlang and elixir | |
run: | | |
brew install erlang elixir | |
mix local.hex --force | |
mix local.rebar --force | |
- name: Precompile | |
run: | | |
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 | |
windows: | |
runs-on: windows-latest | |
env: | |
MIX_ENV: prod | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: 25.1 | |
elixir-version: 1.14 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: x64 | |
- name: Precompile | |
shell: bash | |
run: | | |
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 |