Skip to content

Commit

Permalink
Update workflow to run on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
loglund committed Aug 22, 2023
1 parent 9a3f4cc commit 7c50828
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions .github/workflows/waf.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Waf Tests
on:
'on':
workflow_dispatch:
inputs:
extra_resolve_options:
description: Extra Resolve Options
required: false
push:
branches:
- master
Expand All @@ -9,24 +14,26 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [Windows, Linux]
runs-on: [self-hosted, "${{ matrix.os }}", builder]
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




- 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

0 comments on commit 7c50828

Please sign in to comment.