manual workflow to build libs for all platforms

This commit is contained in:
Prem Chaitanya Prathi 2026-02-05 15:32:12 +05:30
parent 5232faba41
commit 5d739056f2
No known key found for this signature in database

38
.github/workflows/ci-manual.yml vendored Normal file
View File

@ -0,0 +1,38 @@
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.*