Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/attribution-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
jobs:
attribution-gate:
name: attribution-gate
runs-on: ubuntu-latest
runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted","Linux","X64","c2pool-build"]') || 'ubuntu-latest' }}
steps:
- name: Checkout full history
uses: actions/checkout@v4
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-24.04
runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted","Linux","X64","c2pool-build"]') || 'ubuntu-24.04' }}
permissions:
security-events: write
packages: read
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
queries: security-and-quality

# ── C++ build (manual mode only) ─────────────────────────────────────
- if: matrix.build-mode == 'manual'
- if: matrix.build-mode == 'manual' && runner.environment == 'github-hosted'
name: Install system dependencies
run: |
sudo apt-get update -qq
Expand Down Expand Up @@ -71,6 +71,10 @@ jobs:
key: conan2-ubuntu24-gcc13-${{ hashFiles('conanfile.txt') }}
restore-keys: conan2-ubuntu24-gcc13-

- if: matrix.build-mode == 'manual' && runner.environment != 'github-hosted'
name: Clean stale build dir (self-hosted workspace is reused)
run: rm -rf build_codeql

- if: matrix.build-mode == 'manual'
name: Install Conan dependencies
run: |
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/coin-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
jobs:
coin:
name: ${{ matrix.coin }} smoke (Linux x86_64)
runs-on: ubuntu-24.04
runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted","Linux","X64","c2pool-build"]') || 'ubuntu-24.04' }}
strategy:
fail-fast: false
matrix:
Expand All @@ -40,7 +40,7 @@ jobs:
fi

- name: Install system dependencies
if: steps.presence.outputs.exists == '1'
if: steps.presence.outputs.exists == '1' && runner.environment == 'github-hosted'
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends \
Expand Down Expand Up @@ -70,6 +70,10 @@ jobs:
conan2-ubuntu24-gcc13-${{ matrix.coin }}-
conan2-ubuntu24-gcc13-

- name: Clean stale build dir (self-hosted workspace is reused)
if: steps.presence.outputs.exists == '1' && runner.environment != 'github-hosted'
run: rm -rf build_${{ matrix.coin }}

- name: Conan install
if: steps.presence.outputs.exists == '1'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/safe-cosmetic-automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ concurrency:

jobs:
evaluate:
runs-on: ubuntu-24.04
runs-on: ${{ (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) && fromJSON('["self-hosted","Linux","X64","c2pool-build"]') || 'ubuntu-24.04' }}
steps:
- name: Evaluate gate and merge if green and authorized
env:
Expand Down
Loading