mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-31 12:11:15 +00:00
parent
460d3d3b55
commit
9e3ee4ec1e
26
.github/workflows/compare.yml
vendored
26
.github/workflows/compare.yml
vendored
@ -16,34 +16,12 @@ 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:
|
||||||
@ -70,13 +48,13 @@ jobs:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
name: 'MSVC 4.20'
|
name: 'MSVC 4.20'
|
||||||
needs: [param-check, fetch-deps, reccmp]
|
needs: [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:
|
||||||
- ${{ needs.param-check.output.builds }}
|
- ${{ inputs.builds_per_job && inputs.builds_per_job || 4 }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user