Skip to content

Commit

Permalink
gh: tests: use self-hosted runners
Browse files Browse the repository at this point in the history
TODO.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
  • Loading branch information
matttbe committed Mar 7, 2024
1 parent befbb9d commit 65d7d89
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,24 @@ permissions: {}
jobs:
tests:
name: "Tests"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mode: ['normal', 'btf']
include:
- mode: normal
runner: ${{ github.repository_owner == 'multipath-tcp' && 'self-hosted' || 'self-hosted' }} # 'ubuntu-latest' }} ## TODO
- mode: btf
runner: ubuntu-latest
runs-on: ${{ matrix.runner }}
permissions:
contents: read # to fetch code (actions/checkout)
checks: write # to write results

steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
clean: false # not needed on GH runner, self-hosted do that with pre-scripts

#- name: "Collect Workflow Telemetry"
# uses: catchpoint/workflow-telemetry-action@v2
Expand All @@ -52,6 +58,7 @@ jobs:
- name: "Restore cache for CCache"
uses: actions/cache/restore@v4
id: restore-ccache
if: matrix.runner != 'self-hosted'
with:
path: ${{ github.workspace }}/.virtme/ccache
key: ${{ runner.os }}_tests_${{ steps.branch.outputs.name }}-${{ matrix.mode }}-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }}
Expand Down Expand Up @@ -116,7 +123,7 @@ jobs:
*.tap.xml
- name: "Save cache for CCache"
if: always() && (github.repository_owner != 'multipath-tcp' || (github.ref_name == 'export' || github.ref_name == 'export-net'))
if: always() && matrix.runner != 'self-hosted' && (github.repository_owner != 'multipath-tcp' || (github.ref_name == 'export' || github.ref_name == 'export-net'))
uses: actions/cache/save@v4
with:
path: ${{ github.workspace }}/.virtme/ccache
Expand Down

0 comments on commit 65d7d89

Please sign in to comment.