Skip to content

Update .github/workflows/waf.yml to be concurrent #43

Update .github/workflows/waf.yml to be concurrent

Update .github/workflows/waf.yml to be concurrent #43

Workflow file for this run

name: Waf Tests
on: [push, pull_request]
jobs:
waf:
strategy:
fail-fast: false
matrix:
os: [Windows, Linux]
runs-on: [self-hosted, "${{ matrix.os }}", builder]
name: ${{ matrix.os }} Test
env:
python: python3
steps:
- name: Rename python3 to python on Windows
if: runner.os == 'Windows'
run: echo "python=python" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
- name: Checkout
uses: actions/checkout@v2
- name: Configure
run: ${{ env.python }} waf configure
- name: Build
run: ${{ env.python }} waf
- name: Test
run: ${{ env.python }} waf --run_tests
# Cancel previous in-progress when pushing: https://stackoverflow.com/a/72408109
concurrency:
concurrency:

Check failure on line 28 in .github/workflows/waf.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/waf.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
# Cancel previous in-progress when pushing: https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true