Skip to content

Commit

Permalink
Add .cirun.yml to declare the OS configurations we want to use.
Browse files Browse the repository at this point in the history
  • Loading branch information
maruel committed May 14, 2024
1 parent 22570fe commit 7729d2a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/SwiftGen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
windows:
runs-on: windows-latest
runs-on: "${{ vars.USE_CIRUN == 'true' && format('cirun-win11pro-23h2-x64-16-2024-05-13--{0}', github.run_id) } || 'windows-latest' }}"

strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/SwiftLint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
windows:
runs-on: windows-latest
runs-on: "${{ vars.USE_CIRUN == 'true' && format('cirun-win11pro-23h2-x64-16-2024-05-13--{0}', github.run_id) } || 'windows-latest' }}"

strategy:
matrix:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/swift-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ on:
required: true
PASSPHRASE:
required: true
pull_request:

env:
SCCACHE_DIRECT: yes
Expand Down Expand Up @@ -199,8 +200,13 @@ jobs:
fi
fi
echo windows_build_runner=${{ vars.WINDOWS_BUILD_RUNNER || 'windows-latest' }} >> ${GITHUB_OUTPUT}
echo compilers_build_runner=${{ vars.COMPILERS_BUILD_RUNNER || vars.WINDOWS_BUILD_RUNNER || 'windows-latest' }} >> ${GITHUB_OUTPUT}
if [[ "${{vars.USE_CIRUN}}" == "true" ]]; then
echo windows_build_runner=cirun-win11pro-23h2-x64-64-2024-05-13--${{github.run_id}} >> ${GITHUB_OUTPUT}
echo compilers_build_runner=cirun-win11pro-23h2-x64-16-2024-05-13--${{github.run_id}} >> ${GITHUB_OUTPUT}
else
echo windows_build_runner=${{ vars.WINDOWS_BUILD_RUNNER || 'windows-latest' }} >> ${GITHUB_OUTPUT}
echo compilers_build_runner=${{ vars.COMPILERS_BUILD_RUNNER || vars.WINDOWS_BUILD_RUNNER || 'windows-latest' }} >> ${GITHUB_OUTPUT}
fi
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 7729d2a

Please sign in to comment.