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 Apr 18, 2024
1 parent 1f64cbc commit b15e02d
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .cirun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
runners:
- name: win11pro-23h2-x64-16
cloud: azure
instance_type: Standard_F16s_v2
machine_image: "/subscriptions/fe7bef8e-1cf6-4ac1-9385-be50a1504961/resourceGroups/Win-CI/providers/Microsoft.Compute/galleries/base_images/images/win11-23h2-pro-x64/versions/2024.04.11"
labels:
- cirun-win11pro-23h2-x64-16-2024-04-11
extra_config:
runner_path: "D:\\r"
runner_user: runner
run_as: interactive
- name: win11pro-23h2-x64-64
cloud: azure
instance_type: Standard_F64s_v2
machine_image: "/subscriptions/fe7bef8e-1cf6-4ac1-9385-be50a1504961/resourceGroups/Win-CI/providers/Microsoft.Compute/galleries/base_images/images/win11-23h2-pro-x64/versions/2024.04.11"
labels:
- cirun-win11pro-23h2-x64-64-2024-04-11
extra_config:
runner_path: "D:\\r"
runner_user: runner
run_as: interactive
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_WINDOWS_GHA_RUNNER == 'true' && 'windows-latest' || format('cirun-win11pro-23h2-x64-16-2024-04-11--{0}', github.run_id) }}"

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_WINDOWS_GHA_RUNNER == 'true' && 'windows-latest' || format('cirun-win11pro-23h2-x64-16-2024-04-11--{0}', github.run_id) }}"

strategy:
matrix:
Expand Down
46 changes: 44 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 @@ -197,8 +198,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_WINDOWS_GHA_RUNNER}}" == "false" ]]; then
echo windows_build_runner=cirun-win11pro-23h2-x64-64-2024-04-11--${{github.run_id}} >> ${GITHUB_OUTPUT}
echo compilers_build_runner=cirun-win11pro-23h2-x64-16-2024-04-11--${{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 Expand Up @@ -236,6 +242,10 @@ jobs:
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
arch: ${{ matrix.arch }}

- name: Fix things (maruel temporary)
run: |
echo c:\\users\\runner\\.cargo\\bin >> $GITHUB_PATH
- name: Setup sccache
uses: compnerd/[email protected]
with:
Expand Down Expand Up @@ -297,6 +307,10 @@ jobs:
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
arch: amd64

- name: Fix things (maruel temporary)
run: |
echo c:\\users\\runner\\.cargo\\bin >> $GITHUB_PATH
- name: Setup sccache
uses: compnerd/[email protected]
with:
Expand Down Expand Up @@ -383,6 +397,10 @@ jobs:
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
arch: ${{ matrix.arch }}

- name: Fix things (maruel temporary)
run: |
echo c:\\users\\runner\\.cargo\\bin >> $GITHUB_PATH
- name: Setup sccache
uses: compnerd/[email protected]
with:
Expand Down Expand Up @@ -442,6 +460,10 @@ jobs:
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
arch: ${{ matrix.arch }}

- name: Fix things (maruel temporary)
run: |
echo c:\\users\\runner\\.cargo\\bin >> $GITHUB_PATH
- name: Setup sccache
uses: compnerd/[email protected]
with:
Expand Down Expand Up @@ -501,6 +523,10 @@ jobs:

- uses: compnerd/gha-setup-vsdevenv@main

- name: Fix things (maruel temporary)
run: |
echo c:\\users\\runner\\.cargo\\bin >> $GITHUB_PATH
- name: Setup sccache
uses: compnerd/[email protected]
with:
Expand Down Expand Up @@ -671,6 +697,10 @@ jobs:
release-asset-name: installer-amd64.exe
release-tag-name: '20231016.0'

- name: Fix things (maruel temporary)
run: |
echo c:\\users\\runner\\.cargo\\bin >> $GITHUB_PATH
- name: Setup sccache
uses: compnerd/[email protected]
with:
Expand Down Expand Up @@ -845,6 +875,10 @@ jobs:
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
arch: ${{ matrix.arch }}

- name: Fix things (maruel temporary)
run: |
echo c:\\users\\runner\\.cargo\\bin >> $GITHUB_PATH
- name: Setup sccache
uses: compnerd/[email protected]
with:
Expand Down Expand Up @@ -907,6 +941,10 @@ jobs:
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
arch: ${{ matrix.arch }}

- name: Fix things (maruel temporary)
run: |
echo c:\\users\\runner\\.cargo\\bin >> $GITHUB_PATH
- name: Setup sccache
uses: compnerd/[email protected]
with:
Expand Down Expand Up @@ -1041,6 +1079,10 @@ jobs:
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
arch: ${{ matrix.arch }}

- name: Fix things (maruel temporary)
run: |
echo c:\\users\\runner\\.cargo\\bin >> $GITHUB_PATH
- name: Setup sccache
uses: compnerd/[email protected]
with:
Expand Down

0 comments on commit b15e02d

Please sign in to comment.