mirror of
https://github.com/apple/swift-nio
synced 2026-11-23 04:34:23 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p> <blockquote> <h2>v6.0.2</h2> <h2>What's Changed</h2> <ul> <li>Add orchestration_id to git user-agent when ACTIONS_ORCHESTRATION_ID is set by <a href="https://github.com/TingluoHuang"><code>@TingluoHuang</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2355">actions/checkout#2355</a></li> <li>Fix tag handling: preserve annotations and explicit fetch-tags by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/actions/checkout/compare/v6.0.1...v6.0.2">https://github.com/actions/checkout/compare/v6.0.1...v6.0.2</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md">actions/checkout's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <h2>v6.0.2</h2> <ul> <li>Fix tag handling: preserve annotations and explicit fetch-tags by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2356">actions/checkout#2356</a></li> </ul> <h2>v6.0.1</h2> <ul> <li>Add worktree support for persist-credentials includeIf by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2327">actions/checkout#2327</a></li> </ul> <h2>v6.0.0</h2> <ul> <li>Persist creds to a separate file by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2286">actions/checkout#2286</a></li> <li>Update README to include Node.js 24 support details and requirements by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2248">actions/checkout#2248</a></li> </ul> <h2>v5.0.1</h2> <ul> <li>Port v6 cleanup to v5 by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2301">actions/checkout#2301</a></li> </ul> <h2>v5.0.0</h2> <ul> <li>Update actions checkout to use node 24 by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2226">actions/checkout#2226</a></li> </ul> <h2>v4.3.1</h2> <ul> <li>Port v6 cleanup to v4 by <a href="https://github.com/ericsciple"><code>@ericsciple</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2305">actions/checkout#2305</a></li> </ul> <h2>v4.3.0</h2> <ul> <li>docs: update README.md by <a href="https://github.com/motss"><code>@motss</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1971">actions/checkout#1971</a></li> <li>Add internal repos for checking out multiple repositories by <a href="https://github.com/mouismail"><code>@mouismail</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1977">actions/checkout#1977</a></li> <li>Documentation update - add recommended permissions to Readme by <a href="https://github.com/benwells"><code>@benwells</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2043">actions/checkout#2043</a></li> <li>Adjust positioning of user email note and permissions heading by <a href="https://github.com/joshmgross"><code>@joshmgross</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2044">actions/checkout#2044</a></li> <li>Update README.md by <a href="https://github.com/nebuk89"><code>@nebuk89</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2194">actions/checkout#2194</a></li> <li>Update CODEOWNERS for actions by <a href="https://github.com/TingluoHuang"><code>@TingluoHuang</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2224">actions/checkout#2224</a></li> <li>Update package dependencies by <a href="https://github.com/salmanmkc"><code>@salmanmkc</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/2236">actions/checkout#2236</a></li> </ul> <h2>v4.2.2</h2> <ul> <li><code>url-helper.ts</code> now leverages well-known environment variables by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1941">actions/checkout#1941</a></li> <li>Expand unit test coverage for <code>isGhes</code> by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1946">actions/checkout#1946</a></li> </ul> <h2>v4.2.1</h2> <ul> <li>Check out other refs/* by commit if provided, fall back to ref by <a href="https://github.com/orhantoy"><code>@orhantoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1924">actions/checkout#1924</a></li> </ul> <h2>v4.2.0</h2> <ul> <li>Add Ref and Commit outputs by <a href="https://github.com/lucacome"><code>@lucacome</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1180">actions/checkout#1180</a></li> <li>Dependency updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a>- <a href="https://redirect.github.com/actions/checkout/pull/1777">actions/checkout#1777</a>, <a href="https://redirect.github.com/actions/checkout/pull/1872">actions/checkout#1872</a></li> </ul> <h2>v4.1.7</h2> <ul> <li>Bump the minor-npm-dependencies group across 1 directory with 4 updates by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1739">actions/checkout#1739</a></li> <li>Bump actions/checkout from 3 to 4 by <a href="https://github.com/dependabot"><code>@dependabot</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1697">actions/checkout#1697</a></li> <li>Check out other refs/* by commit by <a href="https://github.com/orhantoy"><code>@orhantoy</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1774">actions/checkout#1774</a></li> <li>Pin actions/checkout's own workflows to a known, good, stable version. by <a href="https://github.com/jww3"><code>@jww3</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1776">actions/checkout#1776</a></li> </ul> <h2>v4.1.6</h2> <ul> <li>Check platform to set archive extension appropriately by <a href="https://github.com/cory-miller"><code>@cory-miller</code></a> in <a href="https://redirect.github.com/actions/checkout/pull/1732">actions/checkout#1732</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/actions/checkout/commit/de0fac2e4500dabe0009e67214ff5f5447ce83dd"><code>de0fac2</code></a> Fix tag handling: preserve annotations and explicit fetch-tags (<a href="https://redirect.github.com/actions/checkout/issues/2356">#2356</a>)</li> <li><a href="https://github.com/actions/checkout/commit/064fe7f3312418007dea2b49a19844a9ee378f49"><code>064fe7f</code></a> Add orchestration_id to git user-agent when ACTIONS_ORCHESTRATION_ID is set (...</li> <li>See full diff in <a href="https://github.com/actions/checkout/compare/8e8c483db84b4bee98b60c0593521ed34d9990e8...de0fac2e4500dabe0009e67214ff5f5447ce83dd">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
232 lines
11 KiB
YAML
232 lines
11 KiB
YAML
name: Matrix
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
name:
|
|
type: string
|
|
description: "The name of the workflow used for the concurrency group."
|
|
required: true
|
|
matrix_linux_command:
|
|
type: string
|
|
description: "The command of the current Swift version linux matrix job to execute."
|
|
required: true
|
|
matrix_linux_5_9_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the 5.9 Swift version matrix job. Defaults to false."
|
|
default: false
|
|
matrix_linux_5_9_container_image:
|
|
type: string
|
|
description: "Container image for the 5.9 Swift version matrix job. Defaults to matching Swift Ubuntu image."
|
|
default: "swift:5.9-jammy"
|
|
matrix_linux_5_9_command_override:
|
|
type: string
|
|
description: "The command of the 5.9 Swift version linux matrix job to execute."
|
|
matrix_linux_5_10_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the 5.10 Swift version matrix job. Defaults to true."
|
|
default: true
|
|
matrix_linux_5_10_container_image:
|
|
type: string
|
|
description: "Container image for the 5.10 Swift version matrix job. Defaults to matching Swift Ubuntu image."
|
|
default: "swift:5.10-jammy"
|
|
matrix_linux_5_10_command_override:
|
|
type: string
|
|
description: "The command of the 5.10 Swift version linux matrix job to execute."
|
|
matrix_linux_6_0_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the 6.0 Swift version matrix job. Defaults to true."
|
|
default: true
|
|
matrix_linux_6_0_container_image:
|
|
type: string
|
|
description: "Container image for the 6.0 Swift version matrix job. Defaults to matching Swift Ubuntu image."
|
|
default: "swift:6.0-jammy"
|
|
matrix_linux_6_0_command_override:
|
|
type: string
|
|
description: "The command of the 6.0 Swift version linux matrix job to execute."
|
|
matrix_linux_nightly_6_0_enabled:
|
|
type: boolean
|
|
description: "⚠️ Deprecated, we no longer run against 6.0 nightly."
|
|
default: true
|
|
matrix_linux_nightly_6_0_container_image:
|
|
type: string
|
|
description: "⚠️ Deprecated, we no longer run against 6.0 nightly."
|
|
default: "swiftlang/swift:nightly-6.0-jammy"
|
|
matrix_linux_nightly_6_0_command_override:
|
|
type: string
|
|
description: "⚠️ Deprecated, we no longer run against 6.0 nightly."
|
|
matrix_linux_nightly_6_1_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the nightly 6.1 Swift version matrix job. Defaults to true."
|
|
default: true
|
|
matrix_linux_nightly_6_1_container_image:
|
|
type: string
|
|
description: "Container image for the nightly 6.1 Swift version matrix job. Defaults to matching Swift Ubuntu image."
|
|
default: "swiftlang/swift:nightly-6.1-jammy"
|
|
matrix_linux_nightly_6_1_command_override:
|
|
type: string
|
|
description: "The command of the nightly 6.1 Swift version linux matrix job to execute."
|
|
matrix_linux_nightly_main_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the nightly main Swift version matrix job. Defaults to true."
|
|
default: true
|
|
matrix_linux_nightly_main_container_image:
|
|
type: string
|
|
description: "Container image for the nightly main Swift version matrix job. Defaults to matching Swift Ubuntu image."
|
|
default: "swiftlang/swift:nightly-main-jammy"
|
|
matrix_linux_nightly_main_command_override:
|
|
type: string
|
|
description: "The command of the nightly main Swift version linux matrix job to execute."
|
|
|
|
matrix_windows_command:
|
|
type: string
|
|
description: "The command of the current Swift version windows matrix job to execute."
|
|
default: ""
|
|
matrix_windows_6_0_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the 6.0 Swift version matrix job. Defaults to true."
|
|
default: false
|
|
matrix_windows_6_0_command_override:
|
|
type: string
|
|
description: "The command of the 6.0 Swift version windows matrix job to execute."
|
|
matrix_windows_nightly_6_0_enabled:
|
|
type: boolean
|
|
description: "⚠️ Deprecated, we no longer run against 6.0 nightly."
|
|
default: false
|
|
matrix_windows_nightly_6_0_command_override:
|
|
type: string
|
|
description: "⚠️ Deprecated, we no longer run against 6.0 nightly."
|
|
matrix_windows_nightly_6_1_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the nightly 6.1 Swift version matrix job. Defaults to true."
|
|
default: false
|
|
matrix_windows_nightly_6_1_command_override:
|
|
type: string
|
|
description: "The command of the nightly 6.1 Swift version windows matrix job to execute."
|
|
matrix_windows_nightly_main_enabled:
|
|
type: boolean
|
|
description: "Boolean to enable the nightly main Swift version matrix job. Defaults to true."
|
|
default: false
|
|
matrix_windows_nightly_main_command_override:
|
|
type: string
|
|
description: "The command of the nightly main Swift version windows matrix job to execute."
|
|
|
|
# We are cancelling previously triggered workflow runs
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.name }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
linux:
|
|
name: Linux (${{ matrix.swift.swift_version }})
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# We are specifying only the major and minor of the docker images to automatically pick up the latest patch release
|
|
swift:
|
|
- image: ${{ inputs.matrix_linux_5_9_container_image }}
|
|
swift_version: "5.9"
|
|
enabled: ${{ inputs.matrix_linux_5_9_enabled }}
|
|
- image: ${{ inputs.matrix_linux_5_10_container_image }}
|
|
swift_version: "5.10"
|
|
enabled: ${{ inputs.matrix_linux_5_10_enabled }}
|
|
- image: ${{ inputs.matrix_linux_6_0_container_image }}
|
|
swift_version: "6.0"
|
|
enabled: ${{ inputs.matrix_linux_6_0_enabled }}
|
|
- image: ${{ inputs.matrix_linux_nightly_6_1_container_image }}
|
|
swift_version: "nightly-6.1"
|
|
enabled: ${{ inputs.matrix_linux_nightly_6_1_enabled }}
|
|
- image: ${{ inputs.matrix_linux_nightly_main_container_image }}
|
|
swift_version: "nightly-main"
|
|
enabled: ${{ inputs.matrix_linux_nightly_main_enabled }}
|
|
container:
|
|
image: ${{ matrix.swift.image }}
|
|
steps:
|
|
- name: Checkout repository
|
|
if: ${{ matrix.swift.enabled }}
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
- name: Mark the workspace as safe
|
|
if: ${{ matrix.swift.enabled }}
|
|
# https://github.com/actions/checkout/issues/766
|
|
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
|
|
- name: Run matrix job
|
|
if: ${{ matrix.swift.enabled }}
|
|
env:
|
|
SWIFT_VERSION: ${{ matrix.swift.swift_version }}
|
|
COMMAND: ${{ inputs.matrix_linux_command }}
|
|
COMMAND_OVERRIDE_5_9: ${{ inputs.matrix_linux_5_9_command_override }}
|
|
COMMAND_OVERRIDE_5_10: ${{ inputs.matrix_linux_5_10_command_override }}
|
|
COMMAND_OVERRIDE_6_0: ${{ inputs.matrix_linux_6_0_command_override }}
|
|
COMMAND_OVERRIDE_NIGHTLY_6_1: ${{ inputs.matrix_linux_nightly_6_1_command_override }}
|
|
COMMAND_OVERRIDE_NIGHTLY_MAIN: ${{ inputs.matrix_linux_nightly_main_command_override }}
|
|
run: |
|
|
apt-get -qq update && apt-get -qq -y install curl
|
|
curl -s --retry 3 https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-matrix-job.sh | bash
|
|
|
|
windows:
|
|
name: Windows (${{ matrix.swift.swift_version }})
|
|
runs-on: windows-2022
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# We are specifying only the major and minor of the docker images to automatically pick up the latest patch release
|
|
swift:
|
|
- image: swift:6.0-windowsservercore-ltsc2022
|
|
swift_version: "6.0"
|
|
enabled: ${{ inputs.matrix_windows_6_0_enabled }}
|
|
steps:
|
|
- name: Pull Docker image
|
|
if: ${{ matrix.swift.enabled }}
|
|
run: docker pull ${{ matrix.swift.image }}
|
|
- name: Checkout repository
|
|
if: ${{ matrix.swift.enabled }}
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
- name: Donwload matrix script
|
|
if: ${{ matrix.swift.enabled }}
|
|
run: curl -s --retry 3 https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-matrix-job.ps1 -o __check-matrix-job.ps1
|
|
- name: Run matrix job
|
|
if: ${{ matrix.swift.enabled }}
|
|
run: |
|
|
docker run --env SWIFT_VERSION="${{ matrix.swift.swift_version }}" --env COMMAND="${{ inputs.matrix_windows_command }}" --env COMMAND_OVERRIDE_6_0="${{ inputs.matrix_windows_6_0_command_override }}" -v ${{ github.workspace }}:C:\source ${{ matrix.swift.image }} cmd /s /c "swift --version & cd C:\source\ & powershell -File __check-matrix-job.ps1"
|
|
|
|
windows-nightly:
|
|
name: Windows (${{ matrix.swift.swift_version }})
|
|
runs-on: windows-2019
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
# We are specifying only the major and minor of the docker images to automatically pick up the latest patch release
|
|
swift:
|
|
- image: swiftlang/swift:nightly-6.1-windowsservercore-1809
|
|
swift_version: "nightly-6.1"
|
|
enabled: ${{ inputs.matrix_windows_nightly_6_1_enabled }}
|
|
- image: swiftlang/swift:nightly-main-windowsservercore-1809
|
|
swift_version: "nightly-main"
|
|
enabled: ${{ inputs.matrix_windows_nightly_main_enabled }}
|
|
steps:
|
|
- name: Pull Docker image
|
|
if: ${{ matrix.swift.enabled }}
|
|
run: docker pull ${{ matrix.swift.image }}
|
|
- name: Checkout repository
|
|
if: ${{ matrix.swift.enabled }}
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
- name: Donwload matrix script
|
|
if: ${{ matrix.swift.enabled }}
|
|
run: curl -s --retry 3 https://raw.githubusercontent.com/apple/swift-nio/main/scripts/check-matrix-job.ps1 -o __check-matrix-job.ps1
|
|
- name: Run matrix job
|
|
if: ${{ matrix.swift.enabled }}
|
|
run: |
|
|
docker run --env SWIFT_VERSION="${{ matrix.swift.swift_version }}" --env COMMAND="${{ inputs.matrix_windows_command }}" --env COMMAND_OVERRIDE_NIGHTLY_6_1="${{ inputs.matrix_windows_nightly_6_1_command_override }}" --env COMMAND_OVERRIDE_NIGHTLY_MAIN="${{ inputs.matrix_windows_nightly_main_command_override }}" -v ${{ github.workspace }}:C:\source ${{ matrix.swift.image }} cmd /s /c "swift --version & cd C:\source\ & powershell -File __check-matrix-job.ps1"
|