47 lines
1.2 KiB
YAML
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 }}
|