mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-02-12 18:03:11 +00:00
39 lines
965 B
YAML
39 lines
965 B
YAML
name: On-demand multi-platform build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
ref:
|
|
description: "Branch, tag, or commit SHA to build"
|
|
required: true
|
|
default: "master"
|
|
platform:
|
|
description: "Target platform"
|
|
required: true
|
|
type: choice
|
|
options:
|
|
- linux
|
|
- windows
|
|
- macos
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ inputs.platform == 'linux' && 'ubuntu-latest' || inputs.platform == 'windows' && 'windows-latest' || 'macos-latest' }}
|
|
|
|
steps:
|
|
- name: Checkout requested ref
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ inputs.ref }}
|
|
|
|
- name: Build libwaku
|
|
run: |
|
|
echo "Building ref=${{ inputs.ref }} for platform=${{ inputs.platform }}"
|
|
make libwaku
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: libwaku-${{ inputs.platform }}
|
|
path: build/libwaku.*
|