Skip to content

Navigation Menu

Sign in
Sign up

ci: run fresh-install workflows only in the upstream repo #353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ZheFeng7110 wants to merge 1 commit into mcpp-community:main
base: main
Choose a base branch
Loading
from ZheFeng7110:fix/limit-scheduled-ci-to-upstream
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci-aarch64-fresh-install.yml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ name: ci-aarch64-fresh-install
# Validates that every published aarch64 asset (xlings, mcpp, musl-gcc) lines
# up and that mcpp can build & run a real `import std` program natively on
# aarch64 — no cross, no qemu. Runs on GitHub's native ARM64 runner.
#
# The job is gated with `github.repository == 'mcpp-community/mcpp'`: the
# weekly schedule runs on the repository's DEFAULT branch, so forks with a
# renamed default branch would otherwise burn their Actions quota on the cron.

on:
workflow_dispatch:
Expand Down Expand Up @@ -38,6 +42,7 @@ concurrency:
jobs:
fresh-install:
name: fresh install + native build (aarch64 / glibc)
if: ${{ github.repository == 'mcpp-community/mcpp' }}
runs-on: ubuntu-24.04-arm
timeout-minutes: 60
env:
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/ci-fresh-install.yml
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ name: ci-fresh-install
#
# This workflow tests released mcpp, not PR code.
# It runs on release publish, manual trigger, and daily schedule.
#
# Every job is gated with `github.repository == 'mcpp-community/mcpp'`: the
# schedule trigger runs on the repository's DEFAULT branch, so a fork that
# renamed its default branch would otherwise burn its Actions quota on the
# daily/weekly cron for no value (fresh-install only tests released mcpp).
# PRs against upstream are unaffected — they run the self-host suites
# (ci-linux / ci-macos / ci-windows).

on:
# NOTE: `release: published` never fires from the release pipeline — the
Expand Down Expand Up @@ -69,7 +76,7 @@ jobs:
# Non-workflow_run triggers (manual, cron, PR) skip the wait.
wait-index:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.repository == 'mcpp-community/mcpp' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }}
timeout-minutes: 20
outputs:
version: ${{ steps.resolve.outputs.version }}
Expand Down Expand Up @@ -135,7 +142,7 @@ jobs:
linux-fresh:
needs: [wait-index]
name: Linux fresh install
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.repository == 'mcpp-community/mcpp' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }}
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
Expand Down Expand Up @@ -245,7 +252,7 @@ jobs:
linux-distro-matrix:
needs: [wait-index]
name: Linux distro (${{ matrix.distro }})
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.repository == 'mcpp-community/mcpp' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }}
runs-on: ubuntu-24.04
container:
image: ${{ matrix.image }}
Expand Down Expand Up @@ -338,7 +345,7 @@ jobs:
macos-fresh:
needs: [wait-index]
name: macOS fresh install
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.repository == 'mcpp-community/mcpp' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }}
# macos-14: the support floor (mcpp ≥0.0.50 / xlings ≥0.4.50 ship
# minos=14.0 static-libc++ binaries). A fresh install passing here
# is the continuous proof of the macOS 14 floor — and of host-tool
Expand Down Expand Up @@ -416,7 +423,7 @@ jobs:
windows-fresh:
needs: [wait-index]
name: Windows fresh install (${{ matrix.image }})
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.repository == 'mcpp-community/mcpp' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }}
runs-on: ${{ matrix.image }}
timeout-minutes: 30
strategy:
Expand Down Expand Up @@ -499,7 +506,7 @@ jobs:
windows-nomsvc-fresh:
needs: [wait-index]
name: Windows fresh install (no Visual Studio)
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.repository == 'mcpp-community/mcpp' && (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') }}
runs-on: windows-2025
timeout-minutes: 30
env:
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /