mirror of
https://github.com/luxfi/market.git
synced 2026-09-24 00:25:57 +00:00
ci: cross-platform release matrix on self-hosted runner pools
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
name: Release Matrix (CLI)
|
||||
|
||||
# Cross-platform binary builds via self-hosted runner pools.
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags: ['v*']
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: ${{ matrix.target.id }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
target:
|
||||
- id: macos-arm64
|
||||
runner: luxfi-macos-arm64
|
||||
- id: linux-amd64
|
||||
runner: luxfi-linux-amd64
|
||||
- id: linux-arm64
|
||||
runner: luxfi-linux-arm64
|
||||
- id: windows-amd64
|
||||
runner: luxfi-windows-amd64
|
||||
runs-on: ${{ matrix.target.runner }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Show runner
|
||||
run: echo "Building on ${{ matrix.target.runner }}"
|
||||
- name: Setup Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
- name: Build
|
||||
run: cargo build --release
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: lux-market-${{ matrix.target.id }}
|
||||
path: target/release/lux-market*
|
||||
if-no-files-found: warn
|
||||
Reference in New Issue
Block a user