From 3eead850230c9f4061bad2670b383bea9d9957a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikkel=20H=C3=B8jlund=20Larsen?= Date: Tue, 22 Aug 2023 13:42:25 +0200 Subject: [PATCH] Update workflow to run on push to master --- .github/workflows/nodebug.yml | 62 +++++++++++++++++++---------------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/.github/workflows/nodebug.yml b/.github/workflows/nodebug.yml index cb80587..6c6b64c 100644 --- a/.github/workflows/nodebug.yml +++ b/.github/workflows/nodebug.yml @@ -1,40 +1,44 @@ -name: No Assertions -on: - workflow_dispatch: - inputs: - extra_resolve_options: - description: "Extra Resolve Options" - required: false - schedule: - - cron: "0 1 * * *" # 3 AM CET - push: - pull_request: env: EXTRA_RESOLVE_OPTIONS: ${{ github.event.inputs.extra_resolve_options }} jobs: ndebug: - name: No Assertions - runs-on: [self-hosted, docker, builder] container: image: ghcr.io/steinwurf/python-bindings:latest options: --user 0:0 volumes: - - /home/buildbot/.ssh:/root/.ssh + - /home/buildbot/.ssh:/root/.ssh + name: No Assertions + runs-on: + - self-hosted + - docker + - builder steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Configure - env: - EXTRA_RESOLVE_OPTIONS: ${{ inputs.extra_resolve_options }} - GIT_SSH_COMMAND: ssh -i /home/buildbot/.ssh/id_ed25519 -o IdentitiesOnly=yes - run: python3 waf configure --cxx_nodebug --git_protocol=git@ ${{ env.EXTRA_RESOLVE_OPTIONS }} - - name: Build - run: | - echo "::add-matcher::.github/gcc-problem-matcher.json" - python3 waf - - name: Test - run: python3 waf --run_tests - - + - name: Checkout + uses: actions/checkout@v2 + - env: + EXTRA_RESOLVE_OPTIONS: ${{ inputs.extra_resolve_options }} + GIT_SSH_COMMAND: ssh -i /home/buildbot/.ssh/id_ed25519 -o IdentitiesOnly=yes + name: Configure + run: python3 waf configure --cxx_nodebug --git_protocol=git@ ${{ env.EXTRA_RESOLVE_OPTIONS + }} + - name: Build + run: 'echo "::add-matcher::.github/gcc-problem-matcher.json" + python3 waf + ' + - name: Test + run: python3 waf --run_tests +name: No Assertions +'on': + pull_request: null + push: + branches: + - master + schedule: + - cron: 0 1 * * * + workflow_dispatch: + inputs: + extra_resolve_options: + description: Extra Resolve Options + required: false