mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-02-07 07:23:07 +00:00
Update workflow to build libwaku on all platforms
This commit is contained in:
parent
5d739056f2
commit
552a5abbbe
28
.github/workflows/ci-manual.yml
vendored
28
.github/workflows/ci-manual.yml
vendored
@ -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.*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user