Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
upgrade kinda

Update elixir.yml

Delete devcontainer.json

add dockerfile

add

Update dev-requirements.txt

Update dev-requirements.txt

fix

Update livebook.dockerfile

Update livebook.dockerfile

add

Update arm_release.yml

Update livebook.dockerfile

Update livebook.dockerfile

Update arm_release.yml

add

Update release.yml

Revert "upgrade kinda"

This reverts commit 04b0fb5.

add

Revert "add"

This reverts commit 9b8ce19.
  • Loading branch information
jackalcooper committed Dec 4, 2024
1 parent 98f4295 commit d2f1554
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 35 deletions.
31 changes: 0 additions & 31 deletions .devcontainer/devcontainer.json

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ jobs:
strategy:
fail-fast: false
matrix:
runs-on: ["ubuntu-latest"]
runs-on: ["ubuntu-22.04"]
otp: ["24.2", "25.0"]
elixir: ["1.13.0", "1.16.2", "1.17.2"]
exclude:
- otp: "24.2"
elixir: "1.17.2"
include:
- runs-on: "ubuntu-latest"
- runs-on: "ubuntu-22.04"
otp: "27.0.1"
elixir: "1.17.2"
steps:
Expand Down
45 changes: 45 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,47 @@ 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
file: docker/livebook.dockerfile
- uses: actions/checkout@v3
name: Check-out beaver
with:
repository: beaver-lodge/beaver
path: beaver
- uses: actions/checkout@v3
name: Check-out kinda
with:
repository: beaver-lodge/kinda
path: kinda
- run: docker run --platform linux/arm64 -v $PWD:/src -w /src/beaver ${{ 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 }}
4 changes: 2 additions & 2 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mlir==20.0.0.2024112701+fad5ed6e; sys_platform != "linux"
mlir==20.0.0.2024112701+cuda.fad5ed6e; sys_platform == "linux"
mlir==20.0.0.2024120301+cuda.814ed93e; sys_platform == "linux" and platform_machine == "x86_64"
mlir==20.0.0.2024120301+814ed93e; sys_platform != "linux" or platform_machine != "x86_64"
--find-links https://github.com/makslevental/mlir-wheels/releases/expanded_assets/latest
20 changes: 20 additions & 0 deletions docker/livebook.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ghcr.io/livebook-dev/livebook:0.14.5
RUN apt-get upgrade -y \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
ninja-build \
python3-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# LLVM
COPY ./dev-requirements.txt /src/dev-requirements.txt
RUN python3 -m pip install -r /src/dev-requirements.txt && python3 -m pip cache purge
RUN ln -s $(python3 -c 'import mlir;print(mlir.__path__[0])') /usr/local/mlir
ENV PATH=/usr/local/mlir/bin:${PATH}
RUN llvm-config --version
# Zig
RUN wget "https://ziglang.org/download/0.13.0/zig-linux-aarch64-0.13.0.tar.xz" -O "zig-linux.tar.xz" \
&& tar Jxvf "zig-linux.tar.xz" -C /usr/local \
&& mv /usr/local/zig-linux-aarch64-0.13.0 /usr/local/zig-linux \
&& rm "zig-linux.tar.xz"
ENV PATH=/usr/local/zig-linux:${PATH}
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 d2f1554

Please sign in to comment.