Chore(ci)
This commit is contained in:
+44
-22
@@ -18,28 +18,50 @@ jobs:
|
||||
- name: Checking the format
|
||||
run: gleam format --check
|
||||
|
||||
#build-and-bundle:
|
||||
# runs-on: ubuntu-latest
|
||||
# container:
|
||||
# # Replace this with the path to the image you built and pushed
|
||||
# image: jaypoch/lumabuilder:latest
|
||||
build-linux-binaries:
|
||||
needs: format
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: jaypoch/lumabuilder:latest
|
||||
|
||||
# steps:
|
||||
# - name: Checkout code
|
||||
# uses: actions/checkout@v4
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# - name: Build Gleam to JavaScript
|
||||
# run: gleam build --target javascript
|
||||
- name: Install native packaging tools
|
||||
run: |
|
||||
set -eu
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
|
||||
# - name: Build bundle
|
||||
# run: |
|
||||
# esbuild build/dev/javascript/luma/luma.mjs \
|
||||
# --bundle \
|
||||
# --outfile=parser.js \
|
||||
# --format=iife \
|
||||
# --global-name=App
|
||||
# - name: Upload parser.js
|
||||
# uses: https://gitea.com/actions/upload-artifact@v3
|
||||
# with:
|
||||
# name: parser-js
|
||||
# path: parser.js
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user