47 lines
1.1 KiB
YAML
47 lines
1.1 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/luma-markdown-builder:arm64
|
|
env:
|
|
PATH: /root/.cargo/bin:/usr/local/bin:/usr/bin:/bin
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- 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
|