1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-26 08:25:50 +03:00

ci: actions/checkout@v3 -> v4

closes: #4273
This commit is contained in:
Wez Furlong 2023-09-10 20:50:45 -07:00
parent b103725003
commit a95111342c
No known key found for this signature in database
GPG Key ID: 7A7F66A31EC9B387
43 changed files with 85 additions and 81 deletions

View File

@ -50,7 +50,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -54,7 +54,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -99,7 +99,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -33,7 +33,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -77,7 +77,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -50,7 +50,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -54,7 +54,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -99,7 +99,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -33,7 +33,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -77,7 +77,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -53,7 +53,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -57,7 +57,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -101,7 +101,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -36,7 +36,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -79,7 +79,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -53,7 +53,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -57,7 +57,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -101,7 +101,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -36,7 +36,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -79,7 +79,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -53,7 +53,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -57,7 +57,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -101,7 +101,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -36,7 +36,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -79,7 +79,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -47,7 +47,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -51,7 +51,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -96,7 +96,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -30,7 +30,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -74,7 +74,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -47,7 +47,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -51,7 +51,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -96,7 +96,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -30,7 +30,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -74,7 +74,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -47,7 +47,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -51,7 +51,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -96,7 +96,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -30,7 +30,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -74,7 +74,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -26,7 +26,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -29,7 +29,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -76,7 +76,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -14,7 +14,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -54,7 +54,7 @@ jobs:
name: "macos"
path: "WezTerm-*.zip"
- name: "Checkout homebrew tap"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: "wez/homebrew-wezterm"
path: "homebrew-wezterm"
@ -74,7 +74,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -50,7 +50,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -54,7 +54,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -99,7 +99,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -33,7 +33,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -77,7 +77,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -53,7 +53,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -57,7 +57,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -102,7 +102,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -36,7 +36,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -80,7 +80,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -58,7 +58,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -62,7 +62,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -118,7 +118,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -38,7 +38,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -84,7 +84,7 @@ jobs:
*.AppImage
*.zsync
- name: "Checkout linuxbrew tap"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: "wez/homebrew-wezterm-linuxbrew"
path: "linuxbrew-wezterm"
@ -107,7 +107,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
@ -126,7 +126,7 @@ jobs:
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync *.sha256"
- name: "Checkout flathub/org.wezfurlong.wezterm"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: "flathub/org.wezfurlong.wezterm"
path: "flathub"

View File

@ -53,7 +53,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -57,7 +57,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -101,7 +101,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -36,7 +36,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -79,7 +79,7 @@ jobs:
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -22,7 +22,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"

View File

@ -26,7 +26,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -69,7 +69,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:

View File

@ -12,7 +12,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: "recursive"
- name: "Install Rust"
@ -54,7 +54,7 @@ jobs:
steps:
- name: "checkout repo"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
@ -73,7 +73,7 @@ jobs:
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) WezTerm-*.zip WezTerm-*.exe *.sha256"
- name: "Checkout winget-pkgs"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: "wez/winget-pkgs"
path: "winget-pkgs"

View File

@ -134,11 +134,15 @@ class CacheRustStep(ActionStep):
class CheckoutStep(ActionStep):
def __init__(self, name="checkout repo", submodules=True):
def __init__(self, name="checkout repo", submodules=True, container=None):
params = {}
if submodules:
params["submodules"] = "recursive"
super().__init__(name, action="actions/checkout@v3", params=params)
# Newer versions of the checkout action use a binary-incompatible node
# binary, so we are pinned back on v3
# https://github.com/actions/checkout/issues/1442
version = "v3" if container is not None and "centos7" in container else "v4"
super().__init__(name, action=f"actions/checkout@{version}", params=params)
class InstallCrateStep(ActionStep):
@ -644,7 +648,7 @@ cargo build --all --release""",
return [
ActionStep(
"Checkout flathub/org.wezfurlong.wezterm",
action="actions/checkout@v3",
action="actions/checkout@v4",
params={
"repository": "flathub/org.wezfurlong.wezterm",
"path": "flathub",
@ -670,7 +674,7 @@ cargo build --all --release""",
steps += [
ActionStep(
"Checkout winget-pkgs",
action="actions/checkout@v3",
action="actions/checkout@v4",
params={
"repository": "wez/winget-pkgs",
"path": "winget-pkgs",
@ -706,7 +710,7 @@ cargo build --all --release""",
steps += [
ActionStep(
"Checkout homebrew tap",
action="actions/checkout@v3",
action="actions/checkout@v4",
params={
"repository": "wez/homebrew-wezterm",
"path": "homebrew-wezterm",
@ -730,7 +734,7 @@ cargo build --all --release""",
steps += [
ActionStep(
"Checkout linuxbrew tap",
action="actions/checkout@v3",
action="actions/checkout@v4",
params={
"repository": "wez/homebrew-wezterm-linuxbrew",
"path": "linuxbrew-wezterm",
@ -871,7 +875,7 @@ cargo build --all --release""",
"git config --global --add safe.directory /__w/wezterm/wezterm",
)
]
steps += [CheckoutStep(submodules=submodules)]
steps += [CheckoutStep(submodules=submodules, container=self.container)]
return steps
def continuous(self):