Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
jackalcooper committed Dec 4, 2024
1 parent 40986bb commit 9822aad
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 37 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/arm_release.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- release*
tags:
- "*"
pull_request:
Expand Down Expand Up @@ -131,3 +132,37 @@ jobs:
BEAVER_ARTEFACT_URL: "https://github.com/beaver-lodge/beaver-prebuilt/releases/download/${{ needs.generate_id.outputs.formatted_date }}/@{artefact_filename}"
run: |
mix run bench/enif_add_benchmark.exs
arm_docker:
needs: [generate_id]
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
push: ${{ secrets.DOCKERHUB_USERNAME != '' }}
tags: ${{ secrets.DOCKERHUB_USERNAME }}/beaver-livebook:latest
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/beaver-livebook:latest
cache-to: type=inline
platforms: |
linux/arm64/v8
file: docker/livebook.dockerfile
- run: docker run --platform linux/arm64/v8 -v $PWD:/src -w /src ${{ secrets.DOCKERHUB_USERNAME }}/beaver-livebook:latest bash scripts/build-for-publish.sh
- name: Publish archives and packages
uses: softprops/action-gh-release@v1
if: ${{ github.repository == 'beaver-lodge/beaver' && env.PRE_BUILT_RELEASE_GITHUB_TOKEN != null }}
with:
files: |
*.tar.gz
repository: beaver-lodge/beaver-prebuilt
token: ${{ secrets.PRE_BUILT_RELEASE_GITHUB_TOKEN }}
tag_name: ${{ needs.generate_id.outputs.formatted_date }}
1 change: 1 addition & 0 deletions scripts/build-for-publish.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
set -e
export MIX_ENV=prod
export ELIXIR_MAKE_CACHE_DIR=.
mix deps.get
mix elixir_make.precompile

0 comments on commit 9822aad

Please sign in to comment.