Update workflow to build libwaku on all platforms

This commit is contained in:
Prem Chaitanya Prathi 2026-02-05 15:41:07 +05:30
parent 5d739056f2
commit 552a5abbbe
No known key found for this signature in database

View File

@ -1,38 +1,42 @@
name: On-demand multi-platform build
on:
push:
branches:
- poc/logos-testnet-mix
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' }}
strategy:
matrix:
include:
- platform: linux
runner: ubuntu-latest
- platform: windows
runner: windows-latest
- platform: macos
runner: macos-latest
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout requested ref
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
ref: ${{ inputs.ref || github.ref }}
- name: Build libwaku
run: |
echo "Building ref=${{ inputs.ref }} for platform=${{ inputs.platform }}"
echo "Building ref=${{ inputs.ref || github.ref }} for platform=${{ matrix.platform }}"
make libwaku
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: libwaku-${{ inputs.platform }}
name: libwaku-${{ matrix.platform }}
path: build/libwaku.*