diff --git a/.github/workflows/ci-manual.yml b/.github/workflows/ci-manual.yml new file mode 100644 index 000000000..f9aea0e7d --- /dev/null +++ b/.github/workflows/ci-manual.yml @@ -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.*