1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 21:32:13 +03:00

ci: tidy up separate uploader job

Enable it for tags/releases too, and remove some additional git fetches
and installation of the GH CLI inside containers that we no longer need.
This commit is contained in:
Wez Furlong 2021-12-08 19:57:25 -07:00
parent 20c9badfc8
commit 4143d254aa
34 changed files with 204 additions and 752 deletions

View File

@ -25,12 +25,6 @@ jobs:
- name: "Enable PowerTools" - name: "Enable PowerTools"
shell: bash shell: bash
run: "dnf config-manager --set-enabled powertools" run: "dnf config-manager --set-enabled powertools"
- name: "Enable GH CLI repo"
shell: bash
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
- name: "Install GH CLI"
shell: bash
run: "dnf install -y gh"
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: "yum install -y git" run: "yum install -y git"
@ -47,12 +41,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -85,13 +73,11 @@ jobs:
- name: "Package" - name: "Package"
shell: bash shell: bash
run: "bash ci/deploy.sh" run: "bash ci/deploy.sh"
- name: "Move Package for artifact upload" - name: "Move RPM"
shell: bash shell: bash
run: | run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
mkdir pkg_
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "centos8" name: "centos8"
path: "pkg_" path: "wezterm-*.rpm"

View File

@ -31,16 +31,6 @@ jobs:
run: | run: |
export BUILD_REASON=Schedule export BUILD_REASON=Schedule
dnf config-manager --set-enabled powertools dnf config-manager --set-enabled powertools
- name: "Enable GH CLI repo"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
- name: "Install GH CLI"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf install -y gh
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: | run: |
@ -65,16 +55,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -16,12 +16,6 @@ jobs:
- name: "Enable PowerTools" - name: "Enable PowerTools"
shell: bash shell: bash
run: "dnf config-manager --set-enabled powertools" run: "dnf config-manager --set-enabled powertools"
- name: "Enable GH CLI repo"
shell: bash
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
- name: "Install GH CLI"
shell: bash
run: "dnf install -y gh"
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: "yum install -y git" run: "yum install -y git"
@ -38,12 +32,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -81,6 +69,17 @@ jobs:
with: with:
name: "centos8" name: "centos8"
path: "wezterm-*.rpm" path: "wezterm-*.rpm"
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "centos8"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -34,24 +34,6 @@ jobs:
- name: "Update APT" - name: "Update APT"
shell: bash shell: bash
run: "apt update" run: "apt update"
- name: "Install https support for apt"
shell: bash
run: "apt-get install -y apt-transport-https ca-certificates"
- name: "Install GitHub keyring"
shell: bash
run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg"
- name: "Add GitHub package list"
shell: bash
run: 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null'
- name: "Show GitHub package list"
shell: bash
run: "cat /etc/apt/sources.list.d/*"
- name: "Update APT again"
shell: bash
run: "apt update"
- name: "Install GH CLI"
shell: bash
run: "apt install -y gh"
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: "mkdir -p /run/sshd" run: "mkdir -p /run/sshd"
@ -62,12 +44,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -100,13 +76,10 @@ jobs:
- name: "Package" - name: "Package"
shell: bash shell: bash
run: "bash ci/deploy.sh" run: "bash ci/deploy.sh"
- name: "Move Package for artifact upload"
shell: bash
run: |
mkdir pkg_
mv *.deb *.xz pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "debian10.3" name: "debian10.3"
path: "pkg_" path: |
wezterm-*.deb
wezterm-*.xz

View File

@ -46,36 +46,6 @@ jobs:
run: | run: |
export BUILD_REASON=Schedule export BUILD_REASON=Schedule
apt update apt update
- name: "Install https support for apt"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y apt-transport-https ca-certificates
- name: "Install GitHub keyring"
shell: bash
run: |
export BUILD_REASON=Schedule
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
- name: "Add GitHub package list"
shell: bash
run: |
export BUILD_REASON=Schedule
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
- name: "Show GitHub package list"
shell: bash
run: |
export BUILD_REASON=Schedule
cat /etc/apt/sources.list.d/*
- name: "Update APT again"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
- name: "Install GH CLI"
shell: bash
run: |
export BUILD_REASON=Schedule
apt install -y gh
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: | run: |
@ -90,16 +60,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -25,24 +25,6 @@ jobs:
- name: "Update APT" - name: "Update APT"
shell: bash shell: bash
run: "apt update" run: "apt update"
- name: "Install https support for apt"
shell: bash
run: "apt-get install -y apt-transport-https ca-certificates"
- name: "Install GitHub keyring"
shell: bash
run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg"
- name: "Add GitHub package list"
shell: bash
run: 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null'
- name: "Show GitHub package list"
shell: bash
run: "cat /etc/apt/sources.list.d/*"
- name: "Update APT again"
shell: bash
run: "apt update"
- name: "Install GH CLI"
shell: bash
run: "apt install -y gh"
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: "mkdir -p /run/sshd" run: "mkdir -p /run/sshd"
@ -53,12 +35,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -95,6 +71,17 @@ jobs:
path: | path: |
wezterm-*.deb wezterm-*.deb
wezterm-*.xz wezterm-*.xz
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "debian10.3"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -34,24 +34,6 @@ jobs:
- name: "Update APT" - name: "Update APT"
shell: bash shell: bash
run: "apt update" run: "apt update"
- name: "Install https support for apt"
shell: bash
run: "apt-get install -y apt-transport-https ca-certificates"
- name: "Install GitHub keyring"
shell: bash
run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg"
- name: "Add GitHub package list"
shell: bash
run: 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null'
- name: "Show GitHub package list"
shell: bash
run: "cat /etc/apt/sources.list.d/*"
- name: "Update APT again"
shell: bash
run: "apt update"
- name: "Install GH CLI"
shell: bash
run: "apt install -y gh"
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: "mkdir -p /run/sshd" run: "mkdir -p /run/sshd"
@ -62,12 +44,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -100,13 +76,10 @@ jobs:
- name: "Package" - name: "Package"
shell: bash shell: bash
run: "bash ci/deploy.sh" run: "bash ci/deploy.sh"
- name: "Move Package for artifact upload"
shell: bash
run: |
mkdir pkg_
mv *.deb *.xz pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "debian11" name: "debian11"
path: "pkg_" path: |
wezterm-*.deb
wezterm-*.xz

View File

@ -46,36 +46,6 @@ jobs:
run: | run: |
export BUILD_REASON=Schedule export BUILD_REASON=Schedule
apt update apt update
- name: "Install https support for apt"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y apt-transport-https ca-certificates
- name: "Install GitHub keyring"
shell: bash
run: |
export BUILD_REASON=Schedule
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
- name: "Add GitHub package list"
shell: bash
run: |
export BUILD_REASON=Schedule
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
- name: "Show GitHub package list"
shell: bash
run: |
export BUILD_REASON=Schedule
cat /etc/apt/sources.list.d/*
- name: "Update APT again"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
- name: "Install GH CLI"
shell: bash
run: |
export BUILD_REASON=Schedule
apt install -y gh
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: | run: |
@ -90,16 +60,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -25,24 +25,6 @@ jobs:
- name: "Update APT" - name: "Update APT"
shell: bash shell: bash
run: "apt update" run: "apt update"
- name: "Install https support for apt"
shell: bash
run: "apt-get install -y apt-transport-https ca-certificates"
- name: "Install GitHub keyring"
shell: bash
run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg"
- name: "Add GitHub package list"
shell: bash
run: 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null'
- name: "Show GitHub package list"
shell: bash
run: "cat /etc/apt/sources.list.d/*"
- name: "Update APT again"
shell: bash
run: "apt update"
- name: "Install GH CLI"
shell: bash
run: "apt install -y gh"
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: "mkdir -p /run/sshd" run: "mkdir -p /run/sshd"
@ -53,12 +35,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -95,6 +71,17 @@ jobs:
path: | path: |
wezterm-*.deb wezterm-*.deb
wezterm-*.xz wezterm-*.xz
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "debian11"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -48,24 +48,6 @@ jobs:
- name: "Update APT" - name: "Update APT"
shell: bash shell: bash
run: "apt update" run: "apt update"
- name: "Install https support for apt"
shell: bash
run: "apt-get install -y apt-transport-https ca-certificates"
- name: "Install GitHub keyring"
shell: bash
run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg"
- name: "Add GitHub package list"
shell: bash
run: 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null'
- name: "Show GitHub package list"
shell: bash
run: "cat /etc/apt/sources.list.d/*"
- name: "Update APT again"
shell: bash
run: "apt update"
- name: "Install GH CLI"
shell: bash
run: "apt install -y gh"
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: "mkdir -p /run/sshd" run: "mkdir -p /run/sshd"
@ -76,12 +58,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -114,13 +90,10 @@ jobs:
- name: "Package" - name: "Package"
shell: bash shell: bash
run: "bash ci/deploy.sh" run: "bash ci/deploy.sh"
- name: "Move Package for artifact upload"
shell: bash
run: |
mkdir pkg_
mv *.deb *.xz pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "debian9.12" name: "debian9.12"
path: "pkg_" path: |
wezterm-*.deb
wezterm-*.xz

View File

@ -59,36 +59,6 @@ jobs:
run: | run: |
export BUILD_REASON=Schedule export BUILD_REASON=Schedule
apt update apt update
- name: "Install https support for apt"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y apt-transport-https ca-certificates
- name: "Install GitHub keyring"
shell: bash
run: |
export BUILD_REASON=Schedule
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
- name: "Add GitHub package list"
shell: bash
run: |
export BUILD_REASON=Schedule
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
- name: "Show GitHub package list"
shell: bash
run: |
export BUILD_REASON=Schedule
cat /etc/apt/sources.list.d/*
- name: "Update APT again"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
- name: "Install GH CLI"
shell: bash
run: |
export BUILD_REASON=Schedule
apt install -y gh
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: | run: |
@ -103,16 +73,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -39,24 +39,6 @@ jobs:
- name: "Update APT" - name: "Update APT"
shell: bash shell: bash
run: "apt update" run: "apt update"
- name: "Install https support for apt"
shell: bash
run: "apt-get install -y apt-transport-https ca-certificates"
- name: "Install GitHub keyring"
shell: bash
run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg"
- name: "Add GitHub package list"
shell: bash
run: 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null'
- name: "Show GitHub package list"
shell: bash
run: "cat /etc/apt/sources.list.d/*"
- name: "Update APT again"
shell: bash
run: "apt update"
- name: "Install GH CLI"
shell: bash
run: "apt install -y gh"
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: "mkdir -p /run/sshd" run: "mkdir -p /run/sshd"
@ -67,12 +49,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -109,6 +85,17 @@ jobs:
path: | path: |
wezterm-*.deb wezterm-*.deb
wezterm-*.xz wezterm-*.xz
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "debian9.12"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -22,12 +22,6 @@ jobs:
- name: "Install config manager" - name: "Install config manager"
shell: bash shell: bash
run: "dnf install -y 'dnf-command(config-manager)'" run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Enable GH CLI repo"
shell: bash
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
- name: "Install GH CLI"
shell: bash
run: "dnf install -y gh"
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: "yum install -y git" run: "yum install -y git"
@ -44,12 +38,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -82,13 +70,11 @@ jobs:
- name: "Package" - name: "Package"
shell: bash shell: bash
run: "bash ci/deploy.sh" run: "bash ci/deploy.sh"
- name: "Move Package for artifact upload" - name: "Move RPM"
shell: bash shell: bash
run: | run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
mkdir pkg_
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "fedora33" name: "fedora33"
path: "pkg_" path: "wezterm-*.rpm"

View File

@ -26,16 +26,6 @@ jobs:
run: | run: |
export BUILD_REASON=Schedule export BUILD_REASON=Schedule
dnf install -y 'dnf-command(config-manager)' dnf install -y 'dnf-command(config-manager)'
- name: "Enable GH CLI repo"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
- name: "Install GH CLI"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf install -y gh
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: | run: |
@ -60,16 +50,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -13,12 +13,6 @@ jobs:
- name: "Install config manager" - name: "Install config manager"
shell: bash shell: bash
run: "dnf install -y 'dnf-command(config-manager)'" run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Enable GH CLI repo"
shell: bash
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
- name: "Install GH CLI"
shell: bash
run: "dnf install -y gh"
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: "yum install -y git" run: "yum install -y git"
@ -35,12 +29,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -78,6 +66,17 @@ jobs:
with: with:
name: "fedora33" name: "fedora33"
path: "wezterm-*.rpm" path: "wezterm-*.rpm"
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "fedora33"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -22,12 +22,6 @@ jobs:
- name: "Install config manager" - name: "Install config manager"
shell: bash shell: bash
run: "dnf install -y 'dnf-command(config-manager)'" run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Enable GH CLI repo"
shell: bash
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
- name: "Install GH CLI"
shell: bash
run: "dnf install -y gh"
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: "yum install -y git" run: "yum install -y git"
@ -44,12 +38,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -82,13 +70,11 @@ jobs:
- name: "Package" - name: "Package"
shell: bash shell: bash
run: "bash ci/deploy.sh" run: "bash ci/deploy.sh"
- name: "Move Package for artifact upload" - name: "Move RPM"
shell: bash shell: bash
run: | run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
mkdir pkg_
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "fedora34" name: "fedora34"
path: "pkg_" path: "wezterm-*.rpm"

View File

@ -26,16 +26,6 @@ jobs:
run: | run: |
export BUILD_REASON=Schedule export BUILD_REASON=Schedule
dnf install -y 'dnf-command(config-manager)' dnf install -y 'dnf-command(config-manager)'
- name: "Enable GH CLI repo"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
- name: "Install GH CLI"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf install -y gh
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: | run: |
@ -60,16 +50,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -13,12 +13,6 @@ jobs:
- name: "Install config manager" - name: "Install config manager"
shell: bash shell: bash
run: "dnf install -y 'dnf-command(config-manager)'" run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Enable GH CLI repo"
shell: bash
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
- name: "Install GH CLI"
shell: bash
run: "dnf install -y gh"
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: "yum install -y git" run: "yum install -y git"
@ -35,12 +29,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -78,6 +66,17 @@ jobs:
with: with:
name: "fedora34" name: "fedora34"
path: "wezterm-*.rpm" path: "wezterm-*.rpm"
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "fedora34"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -22,12 +22,6 @@ jobs:
- name: "Install config manager" - name: "Install config manager"
shell: bash shell: bash
run: "dnf install -y 'dnf-command(config-manager)'" run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Enable GH CLI repo"
shell: bash
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
- name: "Install GH CLI"
shell: bash
run: "dnf install -y gh"
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: "yum install -y git" run: "yum install -y git"
@ -44,12 +38,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -82,13 +70,11 @@ jobs:
- name: "Package" - name: "Package"
shell: bash shell: bash
run: "bash ci/deploy.sh" run: "bash ci/deploy.sh"
- name: "Move Package for artifact upload" - name: "Move RPM"
shell: bash shell: bash
run: | run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
mkdir pkg_
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "fedora35" name: "fedora35"
path: "pkg_" path: "wezterm-*.rpm"

View File

@ -26,16 +26,6 @@ jobs:
run: | run: |
export BUILD_REASON=Schedule export BUILD_REASON=Schedule
dnf install -y 'dnf-command(config-manager)' dnf install -y 'dnf-command(config-manager)'
- name: "Enable GH CLI repo"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
- name: "Install GH CLI"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf install -y gh
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: | run: |
@ -60,16 +50,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -13,12 +13,6 @@ jobs:
- name: "Install config manager" - name: "Install config manager"
shell: bash shell: bash
run: "dnf install -y 'dnf-command(config-manager)'" run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Enable GH CLI repo"
shell: bash
run: "dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo"
- name: "Install GH CLI"
shell: bash
run: "dnf install -y gh"
- name: "Install git" - name: "Install git"
shell: bash shell: bash
run: "yum install -y git" run: "yum install -y git"
@ -35,12 +29,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -78,6 +66,17 @@ jobs:
with: with:
name: "fedora35" name: "fedora35"
path: "wezterm-*.rpm" path: "wezterm-*.rpm"
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "fedora35"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -23,16 +23,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -77,15 +67,8 @@ jobs:
run: | run: |
export MACOSX_DEPLOYMENT_TARGET=10.9 export MACOSX_DEPLOYMENT_TARGET=10.9
bash ci/deploy.sh bash ci/deploy.sh
- name: "Move Package for artifact upload"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
mkdir pkg_
mv *.zip pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "macos" name: "macos"
path: "pkg_" path: "WezTerm-*.zip"

View File

@ -25,20 +25,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
export MACOSX_DEPLOYMENT_TARGET=10.9
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
export MACOSX_DEPLOYMENT_TARGET=10.9
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -14,16 +14,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -74,20 +64,6 @@ jobs:
with: with:
name: "macos" name: "macos"
path: "WezTerm-*.zip" path: "WezTerm-*.zip"
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
bash ci/retry.sh bash ci/create-release.sh ${{ github.event.release.tag_name }}
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
bash ci/retry.sh gh release upload --clobber ${ github.event.release.tag_name } WezTerm-*.zip
- name: "Checkout homebrew tap" - name: "Checkout homebrew tap"
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
@ -104,3 +80,24 @@ jobs:
with: with:
commit_message: "Automated update to match latest tag" commit_message: "Automated update to match latest tag"
repository: "homebrew-wezterm" repository: "homebrew-wezterm"
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "macos"
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh ${{ github.event.release.tag_name }}"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber ${ github.event.release.tag_name } WezTerm-*.zip"

View File

@ -29,12 +29,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -73,14 +67,13 @@ jobs:
- name: "Build AppImage" - name: "Build AppImage"
shell: bash shell: bash
run: "bash ci/appimage.sh" run: "bash ci/appimage.sh"
- name: "Move Package for artifact upload"
shell: bash
run: |
mkdir pkg_
mv *.deb *.xz pkg_
mv *.AppImage *.zsync pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "ubuntu18" name: "ubuntu18"
path: "pkg_" path: |
wezterm-*.deb
wezterm-*.xz
*src.tar.gz
*.AppImage
*.zsync

View File

@ -35,16 +35,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -20,12 +20,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -71,16 +65,6 @@ jobs:
*src.tar.gz *src.tar.gz
*.AppImage *.AppImage
*.zsync *.zsync
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh ${{ github.event.release.tag_name }}"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber ${ github.event.release.tag_name } wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync"
- name: "Checkout linuxbrew tap" - name: "Checkout linuxbrew tap"
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
@ -95,3 +79,24 @@ jobs:
with: with:
commit_message: "Automated update to match latest tag" commit_message: "Automated update to match latest tag"
repository: "linuxbrew-wezterm" repository: "linuxbrew-wezterm"
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "ubuntu18"
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh ${{ github.event.release.tag_name }}"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber ${ github.event.release.tag_name } wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync"

View File

@ -34,24 +34,6 @@ jobs:
- name: "Update APT" - name: "Update APT"
shell: bash shell: bash
run: "apt update" run: "apt update"
- name: "Install https support for apt"
shell: bash
run: "apt-get install -y apt-transport-https ca-certificates"
- name: "Install GitHub keyring"
shell: bash
run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg"
- name: "Add GitHub package list"
shell: bash
run: 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null'
- name: "Show GitHub package list"
shell: bash
run: "cat /etc/apt/sources.list.d/*"
- name: "Update APT again"
shell: bash
run: "apt update"
- name: "Install GH CLI"
shell: bash
run: "apt install -y gh"
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: "mkdir -p /run/sshd" run: "mkdir -p /run/sshd"
@ -62,12 +44,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -100,13 +76,10 @@ jobs:
- name: "Package" - name: "Package"
shell: bash shell: bash
run: "bash ci/deploy.sh" run: "bash ci/deploy.sh"
- name: "Move Package for artifact upload"
shell: bash
run: |
mkdir pkg_
mv *.deb *.xz pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "ubuntu20.04" name: "ubuntu20.04"
path: "pkg_" path: |
wezterm-*.deb
wezterm-*.xz

View File

@ -46,36 +46,6 @@ jobs:
run: | run: |
export BUILD_REASON=Schedule export BUILD_REASON=Schedule
apt update apt update
- name: "Install https support for apt"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y apt-transport-https ca-certificates
- name: "Install GitHub keyring"
shell: bash
run: |
export BUILD_REASON=Schedule
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
- name: "Add GitHub package list"
shell: bash
run: |
export BUILD_REASON=Schedule
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
- name: "Show GitHub package list"
shell: bash
run: |
export BUILD_REASON=Schedule
cat /etc/apt/sources.list.d/*
- name: "Update APT again"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
- name: "Install GH CLI"
shell: bash
run: |
export BUILD_REASON=Schedule
apt install -y gh
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: | run: |
@ -90,16 +60,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -25,24 +25,6 @@ jobs:
- name: "Update APT" - name: "Update APT"
shell: bash shell: bash
run: "apt update" run: "apt update"
- name: "Install https support for apt"
shell: bash
run: "apt-get install -y apt-transport-https ca-certificates"
- name: "Install GitHub keyring"
shell: bash
run: "curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg"
- name: "Add GitHub package list"
shell: bash
run: 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null'
- name: "Show GitHub package list"
shell: bash
run: "cat /etc/apt/sources.list.d/*"
- name: "Update APT again"
shell: bash
run: "apt update"
- name: "Install GH CLI"
shell: bash
run: "apt install -y gh"
- name: "Ensure /run/sshd exists" - name: "Ensure /run/sshd exists"
shell: bash shell: bash
run: "mkdir -p /run/sshd" run: "mkdir -p /run/sshd"
@ -53,12 +35,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -95,6 +71,17 @@ jobs:
path: | path: |
wezterm-*.deb wezterm-*.deb
wezterm-*.xz wezterm-*.xz
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "ubuntu20.04"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -23,12 +23,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -62,13 +56,10 @@ jobs:
- name: "Package" - name: "Package"
shell: bash shell: bash
run: "bash ci/deploy.sh" run: "bash ci/deploy.sh"
- name: "Move Package for artifact upload"
shell: bash
run: |
mkdir pkg_
mv *.zip *.exe pkg_
- name: "Upload artifact" - name: "Upload artifact"
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: "windows" name: "windows"
path: "pkg_" path: |
WezTerm-*.zip
WezTerm-*.exe

View File

@ -25,16 +25,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: "Fetch tag/branch history"
shell: bash
run: |
export BUILD_REASON=Schedule
git fetch --prune --unshallow
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:

View File

@ -14,12 +14,6 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
submodules: "recursive" submodules: "recursive"
- name: "Fetch tags"
shell: bash
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
- name: "Fetch tag/branch history"
shell: bash
run: "git fetch --prune --unshallow"
- name: "Install Rust" - name: "Install Rust"
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -57,6 +51,17 @@ jobs:
path: | path: |
WezTerm-*.zip WezTerm-*.zip
WezTerm-*.exe WezTerm-*.exe
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v2
- name: "Download artifact"
uses: actions/download-artifact@v2
with:
name: "windows"
- name: "Create pre-release" - name: "Create pre-release"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -348,24 +348,25 @@ cargo build --all --release""",
return steps return steps
def upload_artifact(self): def upload_artifact(self):
run = "mkdir pkg_\n" steps = []
if self.uses_yum():
run += "mv ~/rpmbuild/RPMS/*/*.rpm pkg_\n"
if "win" in self.name:
run += "mv *.zip *.exe pkg_\n"
if "mac" in self.name:
run += "mv *.zip pkg_\n"
if ("ubuntu" in self.name) or ("debian" in self.name):
run += "mv *.deb *.xz pkg_\n"
if self.app_image:
run += "mv *.AppImage *.zsync pkg_\n"
return [ if self.uses_yum():
RunStep("Move Package for artifact upload", run), steps.append(
RunStep(
"Move RPM",
f"mv ~/rpmbuild/RPMS/*/*.rpm .",
)
)
patterns = self.asset_patterns()
glob = " ".join(patterns)
paths = "\n".join(patterns)
return steps + [
ActionStep( ActionStep(
"Upload artifact", "Upload artifact",
action="actions/upload-artifact@v2", action="actions/upload-artifact@v2",
params={"name": self.name, "path": "pkg_"}, params={"name": self.name, "path": paths},
), ),
] ]
@ -431,18 +432,14 @@ cargo build --all --release""",
def upload_asset_tag(self): def upload_asset_tag(self):
steps = [] steps = []
if self.uses_yum():
steps.append(RunStep("Move RPM", "mv ~/rpmbuild/RPMS/*/*.rpm ."))
patterns = self.asset_patterns() patterns = self.asset_patterns()
glob = " ".join(patterns) glob = " ".join(patterns)
paths = "\n".join(patterns)
return steps + [ return steps + [
ActionStep( ActionStep(
"Upload artifact", "Download artifact",
action="actions/upload-artifact@v2", action="actions/download-artifact@v2",
params={"name": self.name, "path": paths}, params={"name": self.name},
), ),
RunStep( RunStep(
"Create pre-release", "Create pre-release",
@ -545,17 +542,6 @@ cargo build --all --release""",
"dnf config-manager --set-enabled powertools", "dnf config-manager --set-enabled powertools",
), ),
] ]
if ("fedora" in self.container) or ("centos" in self.container):
steps += [
RunStep(
"Enable GH CLI repo",
"dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo",
),
RunStep(
"Install GH CLI",
"dnf install -y gh",
),
]
steps += self.install_newer_compiler() steps += self.install_newer_compiler()
steps += self.install_git() steps += self.install_git()
steps += self.install_curl() steps += self.install_curl()
@ -564,34 +550,11 @@ cargo build --all --release""",
if self.container: if self.container:
steps += [ steps += [
RunStep("Update APT", f"{sudo}apt update"), RunStep("Update APT", f"{sudo}apt update"),
RunStep(
"Install https support for apt",
f"{sudo}apt-get install -y apt-transport-https ca-certificates",
),
RunStep(
"Install GitHub keyring",
f"curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | {sudo}dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg",
),
RunStep(
"Add GitHub package list",
f'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | {sudo}tee /etc/apt/sources.list.d/github-cli.list > /dev/null',
),
RunStep(
"Show GitHub package list",
"cat /etc/apt/sources.list.d/*",
),
RunStep("Update APT again", f"{sudo}apt update"),
RunStep("Install GH CLI", f"{sudo}apt install -y gh"),
] ]
steps += self.install_openssh_server() steps += self.install_openssh_server()
steps += [ steps += [
CheckoutStep(), CheckoutStep(),
# We need tags in order to use git describe for build/packaging
RunStep(
"Fetch tags", "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
),
RunStep("Fetch tag/branch history", "git fetch --prune --unshallow"),
] ]
steps += self.install_rust(cache="mac" not in self.name) steps += self.install_rust(cache="mac" not in self.name)
steps += self.install_system_deps() steps += self.install_system_deps()
@ -644,9 +607,14 @@ cargo build --all --release""",
steps += self.build_all_release() steps += self.build_all_release()
steps += self.test_all_release() steps += self.test_all_release()
steps += self.package(trusted=True) steps += self.package(trusted=True)
steps += self.upload_asset_tag() steps += self.upload_artifact()
steps += self.update_homebrew_tap() steps += self.update_homebrew_tap()
uploader = Job(
runs_on="ubuntu-latest",
steps=[CheckoutStep(submodules=False)] + self.upload_asset_tag(),
)
env = self.global_env() env = self.global_env()
return ( return (
Job( Job(
@ -655,7 +623,7 @@ cargo build --all --release""",
steps=steps, steps=steps,
env=env, env=env,
), ),
None, uploader,
) )
@ -705,6 +673,10 @@ jobs:
job.render(f, 3) job.render(f, 3)
# We upload using a native runner as github API access
# inside a container is really unreliable and can result
# in broken releases that can't automatically be repaired
# <https://github.com/cli/cli/issues/4863>
if uploader: if uploader:
f.write( f.write(
""" """