diff --git a/.github/matrix.py b/.github/matrix.py index c08f85040..406218d0a 100644 --- a/.github/matrix.py +++ b/.github/matrix.py @@ -7,6 +7,15 @@ # 2 of the License, or (at your option) any later version. import json +import sys + +if len(sys.argv) == 2: + build_type = sys.argv[1] +else: + print("Usage: {} ".format(sys.argv[0]), file=sys.stderr) + sys.exit(1) + +print("Generating matrix for type '{}'.".format(build_type)) def clean_os(os): diff --git a/.github/workflows/vtest.yml b/.github/workflows/vtest.yml index c88d4aac8..4d6fdfb60 100644 --- a/.github/workflows/vtest.yml +++ b/.github/workflows/vtest.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v2 - name: Generate Build Matrix id: set-matrix - run: python3 .github/matrix.py + run: python3 .github/matrix.py "${{ github.event_name }}" # The Test job actually runs the tests. Test: