From 7fd6f1184d3075044bd72e8295c458219c76fa1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20H=C3=B8jlund=20Larsen?= Date: Tue, 22 Aug 2023 14:43:00 +0200 Subject: [PATCH] Update workflow to run on push to master --- .github/workflows/kernel_example.yml | 69 ++++++++++++++-------------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/.github/workflows/kernel_example.yml b/.github/workflows/kernel_example.yml index 5f45e09..393db3e 100644 --- a/.github/workflows/kernel_example.yml +++ b/.github/workflows/kernel_example.yml @@ -1,13 +1,13 @@ name: Build Kernel Example -on: +'on': workflow_dispatch: inputs: extra_resolve_options: - description: "Extra Resolve Options" + description: Extra Resolve Options required: false - schedule: - - cron: "0 1 * * *" # 3 AM CET push: + branches: + - master pull_request: env: EXTRA_RESOLVE_OPTIONS: ${{ github.event.inputs.resolve_options }} @@ -17,41 +17,42 @@ jobs: fail-fast: false matrix: config: - - container: conanio/gcc8 - name: Kernel 4.15.0 - kernel_version: 4.15.0-144-generic - kernel_path: /lib/modules/4.15.0-144-generic/build - - container: conanio/gcc10 - name: Kernel 5.4.0 - kernel_version: 5.4.0-74-generic - kernel_path: /lib/modules/5.4.0-74-generic/build - - container: conanio/gcc10 - name: Kernel 5.8.0 - kernel_version: 5.8.0-53-generic - kernel_path: /lib/modules/5.8.0-53-generic/build - - container: conanio/gcc10 - name: Kernel 5.13.0 - kernel_version: 5.13.0-30-generic - kernel_path: /lib/modules/5.13.0-30-generic/build - runs-on: [self-hosted, docker, builder] + - container: conanio/gcc8 + name: Kernel 4.15.0 + kernel_version: 4.15.0-144-generic + kernel_path: /lib/modules/4.15.0-144-generic/build + - container: conanio/gcc10 + name: Kernel 5.4.0 + kernel_version: 5.4.0-74-generic + kernel_path: /lib/modules/5.4.0-74-generic/build + - container: conanio/gcc10 + name: Kernel 5.8.0 + kernel_version: 5.8.0-53-generic + kernel_path: /lib/modules/5.8.0-53-generic/build + - container: conanio/gcc10 + name: Kernel 5.13.0 + kernel_version: 5.13.0-30-generic + kernel_path: /lib/modules/5.13.0-30-generic/build + runs-on: + - self-hosted + - docker + - builder name: ${{ matrix.config.name }} container: image: ${{ matrix.config.container }} options: --user 0:0 volumes: - - /home/buildbot/.ssh:/root/.ssh + - /home/buildbot/.ssh:/root/.ssh steps: - - name: Install SSH client and Linux Headers - run: apt clean && apt update && apt -y install openssh-client linux-headers-${{matrix.config.kernel_version}} - - name: Checkout source code - uses: actions/checkout@v2 - - name: Waf Configure - run: python3 waf configure --git_protocol=git@ $EXTRA_RESOLVE_OPTIONS - - name: Waf Build - run: | - echo "::add-matcher::.github/gcc-problem-matcher.json" - python3 waf --kernel_example --kernel_path=${{ matrix.config.kernel_path }} - - + - name: Install SSH client and Linux Headers + run: apt clean && apt update && apt -y install openssh-client linux-headers-${{matrix.config.kernel_version}} + - name: Checkout source code + uses: actions/checkout@v2 + - name: Waf Configure + run: python3 waf configure --git_protocol=git@ $EXTRA_RESOLVE_OPTIONS + - name: Waf Build + run: 'echo "::add-matcher::.github/gcc-problem-matcher.json" + python3 waf --kernel_example --kernel_path=${{ matrix.config.kernel_path }} + '