mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-11-19 23:16:11 +00:00
Compare commits
4 Commits
5f1bb68723
...
7e27539529
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e27539529 | ||
|
|
80083ce77c | ||
|
|
179553fe38 | ||
|
|
eb21f21dcb |
4
.github/actions/runner-fallback/action.yml
vendored
4
.github/actions/runner-fallback/action.yml
vendored
@@ -11,9 +11,11 @@ inputs:
|
|||||||
description: 'Comma-separated label list or single label for the fallback (e.g. "ubuntu-latest")'
|
description: 'Comma-separated label list or single label for the fallback (e.g. "ubuntu-latest")'
|
||||||
required: true
|
required: true
|
||||||
github-token:
|
github-token:
|
||||||
description: "PAT or GITHUB_TOKEN with `repo` scope"
|
description: 'GitHub token with repo admin read permissions'
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
use-runner:
|
use-runner:
|
||||||
description: "JSON array of labels you can feed straight into runs-on"
|
description: "JSON array of labels you can feed straight into runs-on"
|
||||||
|
|||||||
2
.github/workflows/docs-and-testcov.yml
vendored
2
.github/workflows/docs-and-testcov.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
primary-runner: "self-hosted"
|
primary-runner: "self-hosted"
|
||||||
fallback-runner: "ubuntu-latest"
|
fallback-runner: "ubuntu-latest"
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.CUSTOM_GH_TOKEN }}
|
||||||
|
|
||||||
docs-and-testcov:
|
docs-and-testcov:
|
||||||
needs: pick-runner
|
needs: pick-runner
|
||||||
|
|||||||
2
.github/workflows/run-benchmarks.yml
vendored
2
.github/workflows/run-benchmarks.yml
vendored
@@ -18,7 +18,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
primary-runner: "self-hosted"
|
primary-runner: "self-hosted"
|
||||||
fallback-runner: "ubuntu-latest"
|
fallback-runner: "ubuntu-latest"
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.CUSTOM_GH_TOKEN }}
|
||||||
|
|
||||||
run-benchmarks:
|
run-benchmarks:
|
||||||
needs: pick-runner
|
needs: pick-runner
|
||||||
|
|||||||
6
.github/workflows/run-unit-tests.yml
vendored
6
.github/workflows/run-unit-tests.yml
vendored
@@ -12,18 +12,22 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pick-runner:
|
pick-runner:
|
||||||
|
|
||||||
if: github.event.pull_request.draft == false
|
if: github.event.pull_request.draft == false
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
runner: ${{ steps.choose.outputs.use-runner }}
|
runner: ${{ steps.choose.outputs.use-runner }}
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- id: choose
|
- id: choose
|
||||||
uses: ./.github/actions/runner-fallback
|
uses: ./.github/actions/runner-fallback
|
||||||
with:
|
with:
|
||||||
primary-runner: "self-hosted"
|
primary-runner: "self-hosted"
|
||||||
fallback-runner: "ubuntu-latest"
|
fallback-runner: "ubuntu-latest"
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.CUSTOM_GH_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
run-unit-tests:
|
run-unit-tests:
|
||||||
needs: pick-runner
|
needs: pick-runner
|
||||||
|
|||||||
Reference in New Issue
Block a user