Skip to content

LoCo Release

LoCo Release #31

Workflow file for this run

name: LoCo Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
# This ensures that if Windows fails, Ubuntu and macOS keep running
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
# -------------------------------
# Checkout repo (Upgraded to v4)
# -------------------------------
- uses: actions/checkout@v4
# -------------------------------
# Linux/macOS permissions
# -------------------------------
- name: Set executable permission for bootstrap.sh
if: runner.os != 'Windows'
run: chmod +x bootstrap.sh
# -------------------------------
# Build via bootstrap
# -------------------------------
- name: Run bootstrap
if: runner.os != 'Windows'
# We use 'bash' to ensure the PATH export works
shell: bash
run: ./bootstrap.sh
- name: Run bootstrap (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: .\bootstrap.ps1
# -------------------------------
# Upload binaries (Upgraded to v4)
# -------------------------------
- name: Upload binaries
uses: actions/upload-artifact@v4
with:
# v4 requires unique names for each matrix run
name: loco-${{ matrix.os }}
path: bin/