2026-02-10 11:11:15 +05:30

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.*