Files
wehub-resource-sync 19dc5d82a0
Rust / build (push) Failing after 1s
Rust / docker (push) Failing after 0s
chore: import upstream snapshot with attribution
2026-07-13 12:29:44 +08:00

47 lines
1.2 KiB
YAML

name: Test Platform Builds
# Test builds on all supported platforms.
# Uses the shared build-platforms workflow.
# Also triggers a FreeBSD test build in the rustnet-bsd repo.
on:
workflow_dispatch:
pull_request:
paths:
- 'Cargo.toml'
- 'Cargo.lock'
- 'build.rs'
- 'Cross.toml'
- 'src/**'
- '.github/workflows/test-platform-builds.yml'
- '.github/workflows/build-platforms.yml'
- '.github/actions/**'
permissions:
contents: read
jobs:
build:
uses: ./.github/workflows/build-platforms.yml
with:
create-archives: false
strip-symbols: false
trigger-freebsd-build:
name: trigger-freebsd-build
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Trigger FreeBSD test build
run: |
REF="${{ github.sha }}"
TAG="test-$(date +%Y%m%d-%H%M%S)"
gh api repos/domcyrus/rustnet-bsd/dispatches \
-f event_type=freebsd-build \
-f "client_payload[tag]=$TAG" \
-f "client_payload[rustnet_ref]=$REF" \
-f "client_payload[create_release]=false"
env:
GH_TOKEN: ${{ secrets.BSD_DISPATCH_TOKEN }}