mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-22 16:04:17 +00:00
Verify builds parameter
This commit is contained in:
26
.github/workflows/compare.yml
vendored
26
.github/workflows/compare.yml
vendored
@@ -16,12 +16,34 @@ concurrency:
|
|||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Default to 16 builds per job for push event.
|
||||||
|
BUILDS: ${{ inputs.builds_per_job && inputs.builds_per_job || 16 }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
param-check:
|
||||||
|
name: Verify builds parameter
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
builds: ${{ steps.verify.outputs.builds }}
|
||||||
|
steps:
|
||||||
|
- id: verify
|
||||||
|
run: |
|
||||||
|
if (( ${{ env.BUILDS }} < 0 || ${{ env.BUILDS }} > 64 )); then
|
||||||
|
echo "Invalid number of builds!"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Builds per job '${{ env.BUILDS }}' OK."
|
||||||
|
echo "builds=${{ env.BUILDS }}" >> $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
fetch-deps:
|
fetch-deps:
|
||||||
|
needs: param-check
|
||||||
name: Download original binaries
|
name: Download original binaries
|
||||||
uses: ./.github/workflows/legobin.yml
|
uses: ./.github/workflows/legobin.yml
|
||||||
|
|
||||||
reccmp:
|
reccmp:
|
||||||
|
needs: param-check
|
||||||
name: Setup python environment
|
name: Setup python environment
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
@@ -48,13 +70,13 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
name: 'MSVC 4.20'
|
name: 'MSVC 4.20'
|
||||||
needs: [fetch-deps, reccmp]
|
needs: [param-check, fetch-deps, reccmp]
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
job: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
job: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
|
||||||
builds:
|
builds:
|
||||||
- ${{ inputs.builds_per_job && inputs.builds_per_job || 4 }}
|
- ${{ needs.param-check.output.builds }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
Reference in New Issue
Block a user