Skip to content
Closed
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build and Release binary on Push to Master
on:
release:
types: [published]
branches:
- main
jobs:
generate_binary:
name: Create binary release
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Setup elixir
id: beam
uses: erlef/setup-beam@v1
with:
otp-version: 25.x # Define the OTP version [required]
elixir-version: 1.14.x # Define the elixir version [required]
experimental-otp: true
- name: Cache Mix
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- name: Cache Burrito OTP deps
uses: actions/cache@v3
with:
key: ${{ runner.os }}-burrito-
path: |
~/.cache/burrito_file_cache/
~/burrito_out/
- name: Install dependencies
run: mix deps.get
- name: Install xz
run: sudo apt-get update && sudo apt-get install xz-utils
- name: Setup Zig for burrito
uses: goto-bus-stop/setup-zig@v2
with:
version: 0.10.0
- name: Create release
run: mix release supavisor_bin
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: burrito_out/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.4
0.9.5