Files
luma--markdown/.gitea/workflows/build.yml
T
deck 9ed051d280
Build and Bundle Gleam App / format (push) Successful in 44s
Build and Bundle Gleam App / build-linux-binaries (push) Failing after 25m53s
Chore(ci)
2026-08-31 19:45:57 +02:00

68 lines
1.9 KiB
YAML

name: Build and Bundle Gleam App
run-name: ${{ gitea.actor }} pushed a commit
on:
push:
branches:
- "**" # Triggers on every commit to any branch
jobs:
format:
runs-on: ubuntu-latest
container:
image: jaypoch/lumabuilder:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checking the format
run: gleam format --check
build-linux-binaries:
needs: format
runs-on: ubuntu-latest
container:
image: jaypoch/lumabuilder:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install native packaging tools
run: |
set -eu
export PATH="$HOME/.cargo/bin:$PATH"
if ! command -v rustup >/dev/null 2>&1; then
curl --fail --silent --show-error https://sh.rustup.rs \
| sh -s -- -y --profile minimal
fi
export PATH="$HOME/.cargo/bin:$PATH"
rustup default stable
if ! command -v zig >/dev/null 2>&1; then
curl --fail --silent --show-error --location \
https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz \
--output /tmp/zig.tar.xz
tar -xJf /tmp/zig.tar.xz -C /tmp
ln -s /tmp/zig-x86_64-linux-0.16.0/zig "$HOME/.cargo/bin/zig"
fi
cargo install --locked queso
cargo install cargo-zigbuild
- name: Build x86_64 and ARM64 binaries
run: ./scripts/build-linux-binaries.sh
- name: Upload x86_64 binary
uses: https://gitea.com/actions/upload-artifact@v3
with:
name: luma_markdown-linux-x86_64
path: luma_markdown-linux-x86_64
- name: Upload ARM64 binary
uses: https://gitea.com/actions/upload-artifact@v3
with:
name: luma_markdown-linux-arm64
path: luma_markdown-linux-arm64