From b56f67579d26d6fb835b8902fd4db47c21801eca Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Tue, 21 Sep 2021 15:24:52 +0200 Subject: [PATCH] ci: Simplify and clean up generate-workflows.py --- .github/workflows/gen_centos7.yml | 180 +++++++------- .github/workflows/gen_centos7_continuous.yml | 235 ++++++++---------- .github/workflows/gen_centos7_tag.yml | 156 ++++++------ .github/workflows/gen_centos8.yml | 147 ++++++----- .github/workflows/gen_centos8_continuous.yml | 205 +++++++-------- .github/workflows/gen_centos8_tag.yml | 123 +++++---- .github/workflows/gen_debian10.3.yml | 147 ++++++----- .../workflows/gen_debian10.3_continuous.yml | 193 +++++++------- .github/workflows/gen_debian10.3_tag.yml | 118 +++++---- .github/workflows/gen_debian11.yml | 147 ++++++----- .github/workflows/gen_debian11_continuous.yml | 193 +++++++------- .github/workflows/gen_debian11_tag.yml | 118 +++++---- .github/workflows/gen_debian9.12.yml | 180 +++++++------- .../workflows/gen_debian9.12_continuous.yml | 223 ++++++++--------- .github/workflows/gen_debian9.12_tag.yml | 151 ++++++----- .github/workflows/gen_fedora33.yml | 135 +++++----- .github/workflows/gen_fedora33_continuous.yml | 181 ++++++-------- .github/workflows/gen_fedora33_tag.yml | 111 ++++----- .github/workflows/gen_fedora34.yml | 135 +++++----- .github/workflows/gen_fedora34_continuous.yml | 181 ++++++-------- .github/workflows/gen_fedora34_tag.yml | 111 ++++----- .github/workflows/gen_macos.yml | 180 ++++++-------- .github/workflows/gen_macos_continuous.yml | 174 ++++++------- .github/workflows/gen_macos_tag.yml | 176 ++++++------- .github/workflows/gen_ubuntu18.yml | 149 ++++++----- .github/workflows/gen_ubuntu18_continuous.yml | 193 +++++++------- .github/workflows/gen_ubuntu18_tag.yml | 146 ++++++----- .github/workflows/gen_ubuntu20.04.yml | 147 ++++++----- .../workflows/gen_ubuntu20.04_continuous.yml | 193 +++++++------- .github/workflows/gen_ubuntu20.04_tag.yml | 118 +++++---- .github/workflows/gen_windows.yml | 124 +++++---- .github/workflows/gen_windows_continuous.yml | 134 +++++----- .github/workflows/gen_windows_tag.yml | 95 ++++--- ci/generate-workflows.py | 95 ++++--- 34 files changed, 2415 insertions(+), 2879 deletions(-) diff --git a/.github/workflows/gen_centos7.yml b/.github/workflows/gen_centos7.yml index 28c62df85..e9a1adf9c 100644 --- a/.github/workflows/gen_centos7.yml +++ b/.github/workflows/gen_centos7.yml @@ -1,111 +1,99 @@ - name: centos7 on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "centos:7" steps: - - name: "Install SCL" - shell: bash - run: "yum install -y centos-release-scl-rh" - - name: "Update compiler" - shell: bash - run: "yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++" - - name: "Cache Git installation" - uses: actions/cache@v2.1.6 - with: - path: "/usr/local/git" - key: "centos7-git-2.26.2" - - name: "Install Git from source" - shell: bash - run: | - - yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make - - if test ! -x /usr/local/git/bin/git ; then - cd /tmp - wget https://github.com/git/git/archive/v2.26.2.tar.gz - tar xzf v2.26.2.tar.gz - cd git-2.26.2 - make prefix=/usr/local/git install - fi - - ln -s /usr/local/git/bin/git /usr/local/bin/git - - - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install SCL" + shell: bash + run: "yum install -y centos-release-scl-rh" + - name: "Update compiler" + shell: bash + run: "yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++" + - name: "Cache Git installation" + uses: actions/cache@v2.1.6 + with: + path: "/usr/local/git" + key: "centos7-git-2.26.2" + - name: "Install Git from source" + shell: bash + run: | + yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make + if test ! -x /usr/local/git/bin/git ; then + cd /tmp + wget https://github.com/git/git/archive/v2.26.2.tar.gz + tar xzf v2.26.2.tar.gz + cd git-2.26.2 + make prefix=/usr/local/git install + fi + ln -s /usr/local/git/bin/git /usr/local/bin/git + - name: "Install curl" + shell: bash + run: "yum install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: bash - run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move Package for artifact upload" - shell: bash - run: | - mkdir pkg_ - mv ~/rpmbuild/RPMS/*/*.rpm pkg_ - - - - name: "Upload artifact" - uses: actions/upload-artifact@master - with: - name: "centos7" - path: "pkg_" + key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: bash + run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move Package for artifact upload" + shell: bash + run: | + mkdir pkg_ + mv ~/rpmbuild/RPMS/*/*.rpm pkg_ + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "centos7" + path: "pkg_" diff --git a/.github/workflows/gen_centos7_continuous.yml b/.github/workflows/gen_centos7_continuous.yml index 8a58bd9c0..24475dcf6 100644 --- a/.github/workflows/gen_centos7_continuous.yml +++ b/.github/workflows/gen_centos7_continuous.yml @@ -1,4 +1,3 @@ - name: centos7_continuous on: @@ -6,145 +5,115 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "centos:7" steps: - - name: "Install SCL" - shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y centos-release-scl-rh - - - - name: "Update compiler" - shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++ - - - - name: "Cache Git installation" - uses: actions/cache@v2.1.6 - with: - path: "/usr/local/git" - key: "centos7-git-2.26.2" - - name: "Install Git from source" - shell: bash - run: | - export BUILD_REASON=Schedule - - yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make - - if test ! -x /usr/local/git/bin/git ; then - cd /tmp - wget https://github.com/git/git/archive/v2.26.2.tar.gz - tar xzf v2.26.2.tar.gz - cd git-2.26.2 - make prefix=/usr/local/git install - fi - - ln -s /usr/local/git/bin/git /usr/local/bin/git - - - - - name: "Install curl" - shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y curl - - - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install SCL" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y centos-release-scl-rh + - name: "Update compiler" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++ + - name: "Cache Git installation" + uses: actions/cache@v2.1.6 + with: + path: "/usr/local/git" + key: "centos7-git-2.26.2" + - name: "Install Git from source" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make + if test ! -x /usr/local/git/bin/git ; then + cd /tmp + wget https://github.com/git/git/archive/v2.26.2.tar.gz + tar xzf v2.26.2.tar.gz + cd git-2.26.2 + make prefix=/usr/local/git install + fi + ln -s /usr/local/git/bin/git /usr/local/bin/git + - name: "Install curl" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y curl + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps - - - - name: "Build (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - source /opt/rh/devtoolset-9/enable && cargo build --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - source /opt/rh/devtoolset-9/enable && cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Move RPM" - shell: bash - run: | - export BUILD_REASON=Schedule - mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos7.rpm - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.rpm" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + env PATH=$PATH ./get-deps + - name: "Build (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + source /opt/rh/devtoolset-9/enable && cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + source /opt/rh/devtoolset-9/enable && cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Move RPM" + shell: bash + run: | + export BUILD_REASON=Schedule + mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos7.rpm + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.rpm" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_centos7_tag.yml b/.github/workflows/gen_centos7_tag.yml index 0fb6e8c6a..bd37a58ca 100644 --- a/.github/workflows/gen_centos7_tag.yml +++ b/.github/workflows/gen_centos7_tag.yml @@ -1,4 +1,3 @@ - name: centos7_tag on: @@ -6,93 +5,84 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "centos:7" steps: - - name: "Install SCL" - shell: bash - run: "yum install -y centos-release-scl-rh" - - name: "Update compiler" - shell: bash - run: "yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++" - - name: "Cache Git installation" - uses: actions/cache@v2.1.6 - with: - path: "/usr/local/git" - key: "centos7-git-2.26.2" - - name: "Install Git from source" - shell: bash - run: | - - yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make - - if test ! -x /usr/local/git/bin/git ; then - cd /tmp - wget https://github.com/git/git/archive/v2.26.2.tar.gz - tar xzf v2.26.2.tar.gz - cd git-2.26.2 - make prefix=/usr/local/git install - fi - - ln -s /usr/local/git/bin/git /usr/local/bin/git - - - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install SCL" + shell: bash + run: "yum install -y centos-release-scl-rh" + - name: "Update compiler" + shell: bash + run: "yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++" + - name: "Cache Git installation" + uses: actions/cache@v2.1.6 + with: + path: "/usr/local/git" + key: "centos7-git-2.26.2" + - name: "Install Git from source" + shell: bash + run: | + yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make + if test ! -x /usr/local/git/bin/git ; then + cd /tmp + wget https://github.com/git/git/archive/v2.26.2.tar.gz + tar xzf v2.26.2.tar.gz + cd git-2.26.2 + make prefix=/usr/local/git install + fi + ln -s /usr/local/git/bin/git /usr/local/bin/git + - name: "Install curl" + shell: bash + run: "yum install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move RPM" - shell: bash - run: "mv ~/rpmbuild/RPMS/*/*.rpm ." - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.rpm" - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move RPM" + shell: bash + run: "mv ~/rpmbuild/RPMS/*/*.rpm ." + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.rpm" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_centos8.yml b/.github/workflows/gen_centos8.yml index 0db15eac4..30500463f 100644 --- a/.github/workflows/gen_centos8.yml +++ b/.github/workflows/gen_centos8.yml @@ -1,92 +1,85 @@ - name: centos8 on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "centos:8" steps: - - name: "Install config manager" - shell: bash - run: "dnf install -y 'dnf-command(config-manager)'" - - name: "Enable PowerTools" - shell: bash - run: "dnf config-manager --set-enabled powertools" - - name: "Install git" - shell: bash - run: "yum install -y git" - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install config manager" + shell: bash + run: "dnf install -y 'dnf-command(config-manager)'" + - name: "Enable PowerTools" + shell: bash + run: "dnf config-manager --set-enabled powertools" + - name: "Install git" + shell: bash + run: "yum install -y git" + - name: "Install curl" + shell: bash + run: "yum install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move Package for artifact upload" - shell: bash - run: | - mkdir pkg_ - mv ~/rpmbuild/RPMS/*/*.rpm pkg_ - - - - name: "Upload artifact" - uses: actions/upload-artifact@master - with: - name: "centos8" - path: "pkg_" + key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move Package for artifact upload" + shell: bash + run: | + mkdir pkg_ + mv ~/rpmbuild/RPMS/*/*.rpm pkg_ + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "centos8" + path: "pkg_" diff --git a/.github/workflows/gen_centos8_continuous.yml b/.github/workflows/gen_centos8_continuous.yml index fbb70d564..5e02fa915 100644 --- a/.github/workflows/gen_centos8_continuous.yml +++ b/.github/workflows/gen_centos8_continuous.yml @@ -1,4 +1,3 @@ - name: centos8_continuous on: @@ -6,128 +5,102 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "centos:8" steps: - - name: "Install config manager" - shell: bash - run: | - export BUILD_REASON=Schedule - dnf install -y 'dnf-command(config-manager)' - - - - name: "Enable PowerTools" - shell: bash - run: | - export BUILD_REASON=Schedule - dnf config-manager --set-enabled powertools - - - - name: "Install git" - shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y git - - - - name: "Install curl" - shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y curl - - - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install config manager" + shell: bash + run: | + export BUILD_REASON=Schedule + dnf install -y 'dnf-command(config-manager)' + - name: "Enable PowerTools" + shell: bash + run: | + export BUILD_REASON=Schedule + dnf config-manager --set-enabled powertools + - name: "Install git" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y git + - name: "Install curl" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y curl + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps - - - - name: "Build (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Move RPM" - shell: bash - run: | - export BUILD_REASON=Schedule - mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos8.rpm - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.rpm" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + env PATH=$PATH ./get-deps + - name: "Build (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Move RPM" + shell: bash + run: | + export BUILD_REASON=Schedule + mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos8.rpm + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.rpm" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_centos8_tag.yml b/.github/workflows/gen_centos8_tag.yml index 0ad0a6812..992c59835 100644 --- a/.github/workflows/gen_centos8_tag.yml +++ b/.github/workflows/gen_centos8_tag.yml @@ -1,4 +1,3 @@ - name: centos8_tag on: @@ -6,74 +5,70 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "centos:8" steps: - - name: "Install config manager" - shell: bash - run: "dnf install -y 'dnf-command(config-manager)'" - - name: "Enable PowerTools" - shell: bash - run: "dnf config-manager --set-enabled powertools" - - name: "Install git" - shell: bash - run: "yum install -y git" - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install config manager" + shell: bash + run: "dnf install -y 'dnf-command(config-manager)'" + - name: "Enable PowerTools" + shell: bash + run: "dnf config-manager --set-enabled powertools" + - name: "Install git" + shell: bash + run: "yum install -y git" + - name: "Install curl" + shell: bash + run: "yum install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move RPM" - shell: bash - run: "mv ~/rpmbuild/RPMS/*/*.rpm ." - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.rpm" - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move RPM" + shell: bash + run: "mv ~/rpmbuild/RPMS/*/*.rpm ." + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.rpm" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_debian10.3.yml b/.github/workflows/gen_debian10.3.yml index eb187a810..7751d3d41 100644 --- a/.github/workflows/gen_debian10.3.yml +++ b/.github/workflows/gen_debian10.3.yml @@ -1,92 +1,85 @@ - name: debian10.3 on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "debian:10.3" steps: - - name: "set APT to non-interactive" - shell: bash - run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - - name: "Update APT" - shell: bash - run: "apt update" - - name: "Install git" - shell: bash - run: "apt-get install -y git" - - name: "Install curl" - shell: bash - run: "apt-get install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install git" + shell: bash + run: "apt-get install -y git" + - name: "Install curl" + shell: bash + run: "apt-get install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move Package for artifact upload" - shell: bash - run: | - mkdir pkg_ - mv *.deb *.xz pkg_ - - - - name: "Upload artifact" - uses: actions/upload-artifact@master - with: - name: "debian10.3" - path: "pkg_" + key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move Package for artifact upload" + shell: bash + run: | + mkdir pkg_ + mv *.deb *.xz pkg_ + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "debian10.3" + path: "pkg_" diff --git a/.github/workflows/gen_debian10.3_continuous.yml b/.github/workflows/gen_debian10.3_continuous.yml index 48d18298b..43fbc84f1 100644 --- a/.github/workflows/gen_debian10.3_continuous.yml +++ b/.github/workflows/gen_debian10.3_continuous.yml @@ -1,4 +1,3 @@ - name: debian10.3_continuous on: @@ -6,121 +5,97 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "debian:10.3" steps: - - name: "set APT to non-interactive" - shell: bash - run: | - export BUILD_REASON=Schedule - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections - - - - name: "Update APT" - shell: bash - run: | - export BUILD_REASON=Schedule - apt update - - - - name: "Install git" - shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y git - - - - name: "Install curl" - shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y curl - - - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: | + export BUILD_REASON=Schedule + echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + - name: "Update APT" + shell: bash + run: | + export BUILD_REASON=Schedule + apt update + - name: "Install git" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y git + - name: "Install curl" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y curl + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps - - - - name: "Build (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + env PATH=$PATH ./get-deps + - name: "Build (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_debian10.3_tag.yml b/.github/workflows/gen_debian10.3_tag.yml index f7cae3f59..9d8e4ab72 100644 --- a/.github/workflows/gen_debian10.3_tag.yml +++ b/.github/workflows/gen_debian10.3_tag.yml @@ -1,4 +1,3 @@ - name: debian10.3_tag on: @@ -6,75 +5,70 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "debian:10.3" steps: - - name: "set APT to non-interactive" - shell: bash - run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - - name: "Update APT" - shell: bash - run: "apt update" - - name: "Install git" - shell: bash - run: "apt-get install -y git" - - name: "Install curl" - shell: bash - run: "apt-get install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install git" + shell: bash + run: "apt-get install -y git" + - name: "Install curl" + shell: bash + run: "apt-get install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: | + key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: | wezterm-*.deb wezterm-*.xz wezterm-*.tar.gz - - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_debian11.yml b/.github/workflows/gen_debian11.yml index c1efaa54d..aa8274d41 100644 --- a/.github/workflows/gen_debian11.yml +++ b/.github/workflows/gen_debian11.yml @@ -1,92 +1,85 @@ - name: debian11 on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "debian:11" steps: - - name: "set APT to non-interactive" - shell: bash - run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - - name: "Update APT" - shell: bash - run: "apt update" - - name: "Install git" - shell: bash - run: "apt-get install -y git" - - name: "Install curl" - shell: bash - run: "apt-get install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install git" + shell: bash + run: "apt-get install -y git" + - name: "Install curl" + shell: bash + run: "apt-get install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move Package for artifact upload" - shell: bash - run: | - mkdir pkg_ - mv *.deb *.xz pkg_ - - - - name: "Upload artifact" - uses: actions/upload-artifact@master - with: - name: "debian11" - path: "pkg_" + key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move Package for artifact upload" + shell: bash + run: | + mkdir pkg_ + mv *.deb *.xz pkg_ + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "debian11" + path: "pkg_" diff --git a/.github/workflows/gen_debian11_continuous.yml b/.github/workflows/gen_debian11_continuous.yml index 545777ce1..389dc5e27 100644 --- a/.github/workflows/gen_debian11_continuous.yml +++ b/.github/workflows/gen_debian11_continuous.yml @@ -1,4 +1,3 @@ - name: debian11_continuous on: @@ -6,121 +5,97 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "debian:11" steps: - - name: "set APT to non-interactive" - shell: bash - run: | - export BUILD_REASON=Schedule - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections - - - - name: "Update APT" - shell: bash - run: | - export BUILD_REASON=Schedule - apt update - - - - name: "Install git" - shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y git - - - - name: "Install curl" - shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y curl - - - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: | + export BUILD_REASON=Schedule + echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + - name: "Update APT" + shell: bash + run: | + export BUILD_REASON=Schedule + apt update + - name: "Install git" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y git + - name: "Install curl" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y curl + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps - - - - name: "Build (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + env PATH=$PATH ./get-deps + - name: "Build (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_debian11_tag.yml b/.github/workflows/gen_debian11_tag.yml index 66ab2a838..036a50801 100644 --- a/.github/workflows/gen_debian11_tag.yml +++ b/.github/workflows/gen_debian11_tag.yml @@ -1,4 +1,3 @@ - name: debian11_tag on: @@ -6,75 +5,70 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "debian:11" steps: - - name: "set APT to non-interactive" - shell: bash - run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - - name: "Update APT" - shell: bash - run: "apt update" - - name: "Install git" - shell: bash - run: "apt-get install -y git" - - name: "Install curl" - shell: bash - run: "apt-get install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install git" + shell: bash + run: "apt-get install -y git" + - name: "Install curl" + shell: bash + run: "apt-get install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: | + key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: | wezterm-*.deb wezterm-*.xz wezterm-*.tar.gz - - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_debian9.12.yml b/.github/workflows/gen_debian9.12.yml index 814b36e0f..c6068d056 100644 --- a/.github/workflows/gen_debian9.12.yml +++ b/.github/workflows/gen_debian9.12.yml @@ -1,111 +1,99 @@ - name: debian9.12 on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "debian:9.12" steps: - - name: "set APT to non-interactive" - shell: bash - run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - - name: "Update APT" - shell: bash - run: "apt update" - - name: "Cache Git installation" - uses: actions/cache@v2.1.6 - with: - path: "/usr/local/git" - key: "debian9.12-git-2.26.2" - - name: "Install Git from source" - shell: bash - run: | - - apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make - - if test ! -x /usr/local/git/bin/git ; then - cd /tmp - wget https://github.com/git/git/archive/v2.26.2.tar.gz - tar xzf v2.26.2.tar.gz - cd git-2.26.2 - make prefix=/usr/local/git install - fi - - ln -s /usr/local/git/bin/git /usr/local/bin/git - - - - name: "Install curl" - shell: bash - run: "apt-get install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Cache Git installation" + uses: actions/cache@v2.1.6 + with: + path: "/usr/local/git" + key: "debian9.12-git-2.26.2" + - name: "Install Git from source" + shell: bash + run: | + apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make + if test ! -x /usr/local/git/bin/git ; then + cd /tmp + wget https://github.com/git/git/archive/v2.26.2.tar.gz + tar xzf v2.26.2.tar.gz + cd git-2.26.2 + make prefix=/usr/local/git install + fi + ln -s /usr/local/git/bin/git /usr/local/bin/git + - name: "Install curl" + shell: bash + run: "apt-get install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move Package for artifact upload" - shell: bash - run: | - mkdir pkg_ - mv *.deb *.xz pkg_ - - - - name: "Upload artifact" - uses: actions/upload-artifact@master - with: - name: "debian9.12" - path: "pkg_" + key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move Package for artifact upload" + shell: bash + run: | + mkdir pkg_ + mv *.deb *.xz pkg_ + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "debian9.12" + path: "pkg_" diff --git a/.github/workflows/gen_debian9.12_continuous.yml b/.github/workflows/gen_debian9.12_continuous.yml index 67b20cb6f..20fd5c630 100644 --- a/.github/workflows/gen_debian9.12_continuous.yml +++ b/.github/workflows/gen_debian9.12_continuous.yml @@ -1,4 +1,3 @@ - name: debian9.12_continuous on: @@ -6,138 +5,110 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "debian:9.12" steps: - - name: "set APT to non-interactive" - shell: bash - run: | - export BUILD_REASON=Schedule - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections - - - - name: "Update APT" - shell: bash - run: | - export BUILD_REASON=Schedule - apt update - - - - name: "Cache Git installation" - uses: actions/cache@v2.1.6 - with: - path: "/usr/local/git" - key: "debian9.12-git-2.26.2" - - name: "Install Git from source" - shell: bash - run: | - export BUILD_REASON=Schedule - - apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make - - if test ! -x /usr/local/git/bin/git ; then - cd /tmp - wget https://github.com/git/git/archive/v2.26.2.tar.gz - tar xzf v2.26.2.tar.gz - cd git-2.26.2 - make prefix=/usr/local/git install - fi - - ln -s /usr/local/git/bin/git /usr/local/bin/git - - - - - name: "Install curl" - shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y curl - - - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: | + export BUILD_REASON=Schedule + echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + - name: "Update APT" + shell: bash + run: | + export BUILD_REASON=Schedule + apt update + - name: "Cache Git installation" + uses: actions/cache@v2.1.6 + with: + path: "/usr/local/git" + key: "debian9.12-git-2.26.2" + - name: "Install Git from source" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make + if test ! -x /usr/local/git/bin/git ; then + cd /tmp + wget https://github.com/git/git/archive/v2.26.2.tar.gz + tar xzf v2.26.2.tar.gz + cd git-2.26.2 + make prefix=/usr/local/git install + fi + ln -s /usr/local/git/bin/git /usr/local/bin/git + - name: "Install curl" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y curl + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps - - - - name: "Build (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + env PATH=$PATH ./get-deps + - name: "Build (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_debian9.12_tag.yml b/.github/workflows/gen_debian9.12_tag.yml index 7dda04f04..074f9f7f7 100644 --- a/.github/workflows/gen_debian9.12_tag.yml +++ b/.github/workflows/gen_debian9.12_tag.yml @@ -1,4 +1,3 @@ - name: debian9.12_tag on: @@ -6,94 +5,84 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "debian:9.12" steps: - - name: "set APT to non-interactive" - shell: bash - run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - - name: "Update APT" - shell: bash - run: "apt update" - - name: "Cache Git installation" - uses: actions/cache@v2.1.6 - with: - path: "/usr/local/git" - key: "debian9.12-git-2.26.2" - - name: "Install Git from source" - shell: bash - run: | - - apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make - - if test ! -x /usr/local/git/bin/git ; then - cd /tmp - wget https://github.com/git/git/archive/v2.26.2.tar.gz - tar xzf v2.26.2.tar.gz - cd git-2.26.2 - make prefix=/usr/local/git install - fi - - ln -s /usr/local/git/bin/git /usr/local/bin/git - - - - name: "Install curl" - shell: bash - run: "apt-get install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Cache Git installation" + uses: actions/cache@v2.1.6 + with: + path: "/usr/local/git" + key: "debian9.12-git-2.26.2" + - name: "Install Git from source" + shell: bash + run: | + apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make + if test ! -x /usr/local/git/bin/git ; then + cd /tmp + wget https://github.com/git/git/archive/v2.26.2.tar.gz + tar xzf v2.26.2.tar.gz + cd git-2.26.2 + make prefix=/usr/local/git install + fi + ln -s /usr/local/git/bin/git /usr/local/bin/git + - name: "Install curl" + shell: bash + run: "apt-get install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: | + key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: | wezterm-*.deb wezterm-*.xz wezterm-*.tar.gz - - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_fedora33.yml b/.github/workflows/gen_fedora33.yml index 1e82ace04..8eab18406 100644 --- a/.github/workflows/gen_fedora33.yml +++ b/.github/workflows/gen_fedora33.yml @@ -1,86 +1,79 @@ - name: fedora33 on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "fedora:33" steps: - - name: "Install git" - shell: bash - run: "yum install -y git" - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install git" + shell: bash + run: "yum install -y git" + - name: "Install curl" + shell: bash + run: "yum install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move Package for artifact upload" - shell: bash - run: | - mkdir pkg_ - mv ~/rpmbuild/RPMS/*/*.rpm pkg_ - - - - name: "Upload artifact" - uses: actions/upload-artifact@master - with: - name: "fedora33" - path: "pkg_" + key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move Package for artifact upload" + shell: bash + run: | + mkdir pkg_ + mv ~/rpmbuild/RPMS/*/*.rpm pkg_ + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "fedora33" + path: "pkg_" diff --git a/.github/workflows/gen_fedora33_continuous.yml b/.github/workflows/gen_fedora33_continuous.yml index 156084652..faf3f5566 100644 --- a/.github/workflows/gen_fedora33_continuous.yml +++ b/.github/workflows/gen_fedora33_continuous.yml @@ -1,4 +1,3 @@ - name: fedora33_continuous on: @@ -6,114 +5,92 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "fedora:33" steps: - - name: "Install git" - shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y git - - - - name: "Install curl" - shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y curl - - - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install git" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y git + - name: "Install curl" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y curl + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps - - - - name: "Build (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Move RPM" - shell: bash - run: | - export BUILD_REASON=Schedule - mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora33.rpm - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.rpm" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + env PATH=$PATH ./get-deps + - name: "Build (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Move RPM" + shell: bash + run: | + export BUILD_REASON=Schedule + mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora33.rpm + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.rpm" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_fedora33_tag.yml b/.github/workflows/gen_fedora33_tag.yml index accb120f1..0b2459e1e 100644 --- a/.github/workflows/gen_fedora33_tag.yml +++ b/.github/workflows/gen_fedora33_tag.yml @@ -1,4 +1,3 @@ - name: fedora33_tag on: @@ -6,68 +5,64 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "fedora:33" steps: - - name: "Install git" - shell: bash - run: "yum install -y git" - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install git" + shell: bash + run: "yum install -y git" + - name: "Install curl" + shell: bash + run: "yum install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move RPM" - shell: bash - run: "mv ~/rpmbuild/RPMS/*/*.rpm ." - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.rpm" - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move RPM" + shell: bash + run: "mv ~/rpmbuild/RPMS/*/*.rpm ." + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.rpm" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_fedora34.yml b/.github/workflows/gen_fedora34.yml index 07d17703e..b0d37406a 100644 --- a/.github/workflows/gen_fedora34.yml +++ b/.github/workflows/gen_fedora34.yml @@ -1,86 +1,79 @@ - name: fedora34 on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "fedora:34" steps: - - name: "Install git" - shell: bash - run: "yum install -y git" - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install git" + shell: bash + run: "yum install -y git" + - name: "Install curl" + shell: bash + run: "yum install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move Package for artifact upload" - shell: bash - run: | - mkdir pkg_ - mv ~/rpmbuild/RPMS/*/*.rpm pkg_ - - - - name: "Upload artifact" - uses: actions/upload-artifact@master - with: - name: "fedora34" - path: "pkg_" + key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move Package for artifact upload" + shell: bash + run: | + mkdir pkg_ + mv ~/rpmbuild/RPMS/*/*.rpm pkg_ + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "fedora34" + path: "pkg_" diff --git a/.github/workflows/gen_fedora34_continuous.yml b/.github/workflows/gen_fedora34_continuous.yml index 2acfd5542..691d18aa9 100644 --- a/.github/workflows/gen_fedora34_continuous.yml +++ b/.github/workflows/gen_fedora34_continuous.yml @@ -1,4 +1,3 @@ - name: fedora34_continuous on: @@ -6,114 +5,92 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "fedora:34" steps: - - name: "Install git" - shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y git - - - - name: "Install curl" - shell: bash - run: | - export BUILD_REASON=Schedule - yum install -y curl - - - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install git" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y git + - name: "Install curl" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y curl + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps - - - - name: "Build (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Move RPM" - shell: bash - run: | - export BUILD_REASON=Schedule - mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora34.rpm - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.rpm" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + env PATH=$PATH ./get-deps + - name: "Build (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Move RPM" + shell: bash + run: | + export BUILD_REASON=Schedule + mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora34.rpm + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.rpm" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_fedora34_tag.yml b/.github/workflows/gen_fedora34_tag.yml index 543cf5c68..d2f28a37c 100644 --- a/.github/workflows/gen_fedora34_tag.yml +++ b/.github/workflows/gen_fedora34_tag.yml @@ -1,4 +1,3 @@ - name: fedora34_tag on: @@ -6,68 +5,64 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "fedora:34" steps: - - name: "Install git" - shell: bash - run: "yum install -y git" - - name: "Install curl" - shell: bash - run: "yum install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Install git" + shell: bash + run: "yum install -y git" + - name: "Install curl" + shell: bash + run: "yum install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move RPM" - shell: bash - run: "mv ~/rpmbuild/RPMS/*/*.rpm ." - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.rpm" - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move RPM" + shell: bash + run: "mv ~/rpmbuild/RPMS/*/*.rpm ." + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.rpm" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_macos.yml b/.github/workflows/gen_macos.yml index 5a4560323..7e8adb9e9 100644 --- a/.github/workflows/gen_macos.yml +++ b/.github/workflows/gen_macos.yml @@ -1,115 +1,91 @@ - name: macos on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "macos-11" steps: - - name: "checkout repo" - uses: actions/checkout@v2 - with: - submodules: "recursive" - - name: "Fetch tags" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - git fetch --depth=1 origin +refs/tags/*:refs/tags/* - + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Install Rust (ARM)" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + rustup target add aarch64-apple-darwin + - name: "Install System Deps" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + env PATH=$PATH ./get-deps + - name: "Check formatting" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo fmt --all -- --check + - name: "Build (Release mode Intel)" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo build --target x86_64-apple-darwin --all --release + - name: "Build (Release mode ARM)" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo build --target aarch64-apple-darwin --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo test --target x86_64-apple-darwin --all --release + - name: "Package" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + 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: "Fetch tag/branch history" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - git fetch --prune --unshallow - - - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Install Rust (ARM)" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - rustup target add aarch64-apple-darwin - - - - name: "Install System Deps" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - env PATH=$PATH ./get-deps - - - - name: "Check formatting" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo fmt --all -- --check - - - - name: "Build (Release mode Intel)" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target x86_64-apple-darwin --all --release - - - - name: "Build (Release mode ARM)" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target aarch64-apple-darwin --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo test --target x86_64-apple-darwin --all --release - - - - name: "Package" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - 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" - uses: actions/upload-artifact@master - with: - name: "macos" - path: "pkg_" + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "macos" + path: "pkg_" diff --git a/.github/workflows/gen_macos_continuous.yml b/.github/workflows/gen_macos_continuous.yml index b29a7e22d..d4e1c3e8b 100644 --- a/.github/workflows/gen_macos_continuous.yml +++ b/.github/workflows/gen_macos_continuous.yml @@ -1,4 +1,3 @@ - name: macos_continuous on: @@ -6,114 +5,95 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "macos-11" steps: - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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: "checkout repo" + uses: actions/checkout@v2 + with: + 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: "Fetch tag/branch history" + shell: bash + run: | + export BUILD_REASON=Schedule + export MACOSX_DEPLOYMENT_TARGET=10.9 + git fetch --prune --unshallow - - name: "Install Rust" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Install Rust (ARM)" - shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - rustup target add aarch64-apple-darwin - - + - name: "Install Rust" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Install Rust (ARM)" + shell: bash + run: | + export BUILD_REASON=Schedule + export MACOSX_DEPLOYMENT_TARGET=10.9 + rustup target add aarch64-apple-darwin - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - env PATH=$PATH ./get-deps - - + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + export MACOSX_DEPLOYMENT_TARGET=10.9 + env PATH=$PATH ./get-deps - - name: "Build (Release mode Intel)" - shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target x86_64-apple-darwin --all --release - - + - name: "Build (Release mode Intel)" + shell: bash + run: | + export BUILD_REASON=Schedule + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo build --target x86_64-apple-darwin --all --release - - name: "Build (Release mode ARM)" - shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target aarch64-apple-darwin --all --release - - + - name: "Build (Release mode ARM)" + shell: bash + run: | + export BUILD_REASON=Schedule + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo build --target aarch64-apple-darwin --all --release - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo test --target x86_64-apple-darwin --all --release - - + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo test --target x86_64-apple-darwin --all --release - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - export MACOSX_DEPLOYMENT_TARGET=10.9 - bash ci/deploy.sh - - + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + export MACOSX_DEPLOYMENT_TARGET=10.9 + bash ci/deploy.sh - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "WezTerm-*.zip" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "WezTerm-*.zip" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_macos_tag.yml b/.github/workflows/gen_macos_tag.yml index 48cd79230..73101a955 100644 --- a/.github/workflows/gen_macos_tag.yml +++ b/.github/workflows/gen_macos_tag.yml @@ -1,4 +1,3 @@ - name: macos_tag on: @@ -6,106 +5,85 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "macos-11" steps: - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Install Rust (ARM)" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - rustup target add aarch64-apple-darwin - - - - name: "Install System Deps" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - env PATH=$PATH ./get-deps - - - - name: "Build (Release mode Intel)" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target x86_64-apple-darwin --all --release - - - - name: "Build (Release mode ARM)" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo build --target aarch64-apple-darwin --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cargo test --target x86_64-apple-darwin --all --release - - - - name: "Package" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - bash ci/deploy.sh - - - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: "WezTerm-*.zip" - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - - name: "Checkout homebrew tap" - uses: actions/checkout@v2 - with: - repository: "wez/homebrew-wezterm" - path: "homebrew-wezterm" - token: "${{ secrets.GH_PAT }}" - - name: "Update homebrew tap formula" - shell: bash - run: | - export MACOSX_DEPLOYMENT_TARGET=10.9 - cp wezterm.rb homebrew-wezterm/Casks/wezterm.rb - - - - name: "Commit homebrew tap changes" - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: "Automated update to match latest tag" - repository: "homebrew-wezterm" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Install Rust (ARM)" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + rustup target add aarch64-apple-darwin + - name: "Install System Deps" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + env PATH=$PATH ./get-deps + - name: "Build (Release mode Intel)" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo build --target x86_64-apple-darwin --all --release + - name: "Build (Release mode ARM)" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo build --target aarch64-apple-darwin --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + cargo test --target x86_64-apple-darwin --all --release + - name: "Package" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + bash ci/deploy.sh + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: "WezTerm-*.zip" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + - name: "Checkout homebrew tap" + uses: actions/checkout@v2 + with: + repository: "wez/homebrew-wezterm" + path: "homebrew-wezterm" + token: "${{ secrets.GH_PAT }}" + - name: "Update homebrew tap formula" + shell: bash + run: | + export MACOSX_DEPLOYMENT_TARGET=10.9 + cp wezterm.rb homebrew-wezterm/Casks/wezterm.rb + - name: "Commit homebrew tap changes" + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "Automated update to match latest tag" + repository: "homebrew-wezterm" diff --git a/.github/workflows/gen_ubuntu18.yml b/.github/workflows/gen_ubuntu18.yml index 6e57a5594..6162262fb 100644 --- a/.github/workflows/gen_ubuntu18.yml +++ b/.github/workflows/gen_ubuntu18.yml @@ -1,93 +1,86 @@ - name: ubuntu18 on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-18.04" steps: - - name: "Update APT" - shell: bash - run: "sudo -n apt update" - - name: "Install git" - shell: bash - run: "sudo -n apt-get install -y git" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Update APT" + shell: bash + run: "sudo -n apt update" + - name: "Install git" + shell: bash + run: "sudo -n apt-get install -y git" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "sudo -n env PATH=$PATH ./get-deps" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Source Tarball" - shell: bash - run: "bash ci/source-archive.sh" - - name: "Build AppImage" - shell: bash - 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" - uses: actions/upload-artifact@master - with: - name: "ubuntu18" - path: "pkg_" + key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "sudo -n env PATH=$PATH ./get-deps" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Source Tarball" + shell: bash + run: "bash ci/source-archive.sh" + - name: "Build AppImage" + shell: bash + 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" + uses: actions/upload-artifact@master + with: + name: "ubuntu18" + path: "pkg_" diff --git a/.github/workflows/gen_ubuntu18_continuous.yml b/.github/workflows/gen_ubuntu18_continuous.yml index 4c9384c16..e7fd7f37f 100644 --- a/.github/workflows/gen_ubuntu18_continuous.yml +++ b/.github/workflows/gen_ubuntu18_continuous.yml @@ -1,4 +1,3 @@ - name: ubuntu18_continuous on: @@ -6,121 +5,97 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-18.04" steps: - - name: "Update APT" - shell: bash - run: | - export BUILD_REASON=Schedule - sudo -n apt update - - - - name: "Install git" - shell: bash - run: | - export BUILD_REASON=Schedule - sudo -n apt-get install -y git - - - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Update APT" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n apt update + - name: "Install git" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n apt-get install -y git + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - sudo -n env PATH=$PATH ./get-deps - - - - name: "Build (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Source Tarball" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/source-archive.sh - - - - name: "Build AppImage" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/appimage.sh - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz;*.AppImage;*.zsync" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n env PATH=$PATH ./get-deps + - name: "Build (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Source Tarball" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/source-archive.sh + - name: "Build AppImage" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/appimage.sh + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz;*.AppImage;*.zsync" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_ubuntu18_tag.yml b/.github/workflows/gen_ubuntu18_tag.yml index 9d0245f78..9a6bd7a6e 100644 --- a/.github/workflows/gen_ubuntu18_tag.yml +++ b/.github/workflows/gen_ubuntu18_tag.yml @@ -1,4 +1,3 @@ - name: ubuntu18_tag on: @@ -6,91 +5,86 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-18.04" steps: - - name: "Update APT" - shell: bash - run: "sudo -n apt update" - - name: "Install git" - shell: bash - run: "sudo -n apt-get install -y git" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "Update APT" + shell: bash + run: "sudo -n apt update" + - name: "Install git" + shell: bash + run: "sudo -n apt-get install -y git" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: "sudo -n env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Source Tarball" - shell: bash - run: "bash ci/source-archive.sh" - - name: "Build AppImage" - shell: bash - run: "bash ci/appimage.sh" - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: | + key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "sudo -n env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Source Tarball" + shell: bash + run: "bash ci/source-archive.sh" + - name: "Build AppImage" + shell: bash + run: "bash ci/appimage.sh" + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: | wezterm-*.deb wezterm-*.xz wezterm-*.tar.gz *.AppImage *.zsync - - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - - name: "Checkout linuxbrew tap" - uses: actions/checkout@v2 - with: - repository: "wez/homebrew-wezterm-linuxbrew" - path: "linuxbrew-wezterm" - token: "${{ secrets.GH_PAT }}" - - name: "Update linuxbrew tap formula" - shell: bash - run: "cp wezterm-linuxbrew.rb linuxbrew-wezterm/Formula/wezterm.rb" - - name: "Commit linuxbrew tap changes" - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: "Automated update to match latest tag" - repository: "linuxbrew-wezterm" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + - name: "Checkout linuxbrew tap" + uses: actions/checkout@v2 + with: + repository: "wez/homebrew-wezterm-linuxbrew" + path: "linuxbrew-wezterm" + token: "${{ secrets.GH_PAT }}" + - name: "Update linuxbrew tap formula" + shell: bash + run: "cp wezterm-linuxbrew.rb linuxbrew-wezterm/Formula/wezterm.rb" + - name: "Commit linuxbrew tap changes" + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "Automated update to match latest tag" + repository: "linuxbrew-wezterm" diff --git a/.github/workflows/gen_ubuntu20.04.yml b/.github/workflows/gen_ubuntu20.04.yml index 7521657f2..9511c4c78 100644 --- a/.github/workflows/gen_ubuntu20.04.yml +++ b/.github/workflows/gen_ubuntu20.04.yml @@ -1,92 +1,85 @@ - name: ubuntu20.04 on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "ubuntu:20.04" steps: - - name: "set APT to non-interactive" - shell: bash - run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - - name: "Update APT" - shell: bash - run: "apt update" - - name: "Install git" - shell: bash - run: "apt-get install -y git" - - name: "Install curl" - shell: bash - run: "apt-get install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install git" + shell: bash + run: "apt-get install -y git" + - name: "Install curl" + shell: bash + run: "apt-get install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move Package for artifact upload" - shell: bash - run: | - mkdir pkg_ - mv *.deb *.xz pkg_ - - - - name: "Upload artifact" - uses: actions/upload-artifact@master - with: - name: "ubuntu20.04" - path: "pkg_" + key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move Package for artifact upload" + shell: bash + run: | + mkdir pkg_ + mv *.deb *.xz pkg_ + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "ubuntu20.04" + path: "pkg_" diff --git a/.github/workflows/gen_ubuntu20.04_continuous.yml b/.github/workflows/gen_ubuntu20.04_continuous.yml index 577ef2de9..8791d04b4 100644 --- a/.github/workflows/gen_ubuntu20.04_continuous.yml +++ b/.github/workflows/gen_ubuntu20.04_continuous.yml @@ -1,4 +1,3 @@ - name: ubuntu20.04_continuous on: @@ -6,121 +5,97 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "ubuntu:20.04" steps: - - name: "set APT to non-interactive" - shell: bash - run: | - export BUILD_REASON=Schedule - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections - - - - name: "Update APT" - shell: bash - run: | - export BUILD_REASON=Schedule - apt update - - - - name: "Install git" - shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y git - - - - name: "Install curl" - shell: bash - run: | - export BUILD_REASON=Schedule - apt-get install -y curl - - - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: | + export BUILD_REASON=Schedule + echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + - name: "Update APT" + shell: bash + run: | + export BUILD_REASON=Schedule + apt update + - name: "Install git" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y git + - name: "Install curl" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y curl + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: | - export BUILD_REASON=Schedule - env PATH=$PATH ./get-deps - - - - name: "Build (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo build --all --release - - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + env PATH=$PATH ./get-deps + - name: "Build (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_ubuntu20.04_tag.yml b/.github/workflows/gen_ubuntu20.04_tag.yml index 6af751139..7ea4da894 100644 --- a/.github/workflows/gen_ubuntu20.04_tag.yml +++ b/.github/workflows/gen_ubuntu20.04_tag.yml @@ -1,4 +1,3 @@ - name: ubuntu20.04_tag on: @@ -6,75 +5,70 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "ubuntu-latest" container: "ubuntu:20.04" steps: - - name: "set APT to non-interactive" - shell: bash - run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" - - name: "Update APT" - shell: bash - run: "apt update" - - name: "Install git" - shell: bash - run: "apt-get install -y git" - - name: "Install curl" - shell: bash - run: "apt-get install -y curl" - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "set APT to non-interactive" + shell: bash + run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections" + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install git" + shell: bash + run: "apt-get install -y git" + - name: "Install curl" + shell: bash + run: "apt-get install -y curl" + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target - - key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Install System Deps" - shell: bash - run: " env PATH=$PATH ./get-deps" - - name: "Build (Release mode)" - shell: bash - run: "cargo build --all --release" - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: | + key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Install System Deps" + shell: bash + run: "env PATH=$PATH ./get-deps" + - name: "Build (Release mode)" + shell: bash + run: "cargo build --all --release" + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: | wezterm-*.deb wezterm-*.xz wezterm-*.tar.gz - - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_windows.yml b/.github/workflows/gen_windows.yml index 8649b40d0..218e33c64 100644 --- a/.github/workflows/gen_windows.yml +++ b/.github/workflows/gen_windows.yml @@ -1,82 +1,74 @@ - name: windows on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "vs2017-win2016" steps: - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - target: "x86_64-pc-windows-msvc" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + target: "x86_64-pc-windows-msvc" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target + key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Check formatting" + shell: bash + run: "cargo fmt --all -- --check" + - name: "Build (Release mode)" + shell: cmd + run: | - key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Check formatting" - shell: bash - run: "cargo fmt --all -- --check" - - name: "Build (Release mode)" - shell: cmd - run: | - - PATH C:\Strawberry\perl\bin;%PATH% - cargo build --all --release - - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Move Package for artifact upload" - shell: bash - run: | - mkdir pkg_ - mv *.zip *.exe pkg_ - - - - name: "Upload artifact" - uses: actions/upload-artifact@master - with: - name: "windows" - path: "pkg_" + PATH C:\Strawberry\perl\bin;%PATH% + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Move Package for artifact upload" + shell: bash + run: | + mkdir pkg_ + mv *.zip *.exe pkg_ + - name: "Upload artifact" + uses: actions/upload-artifact@master + with: + name: "windows" + path: "pkg_" diff --git a/.github/workflows/gen_windows_continuous.yml b/.github/workflows/gen_windows_continuous.yml index b9e74bce2..a3dbf9b45 100644 --- a/.github/workflows/gen_windows_continuous.yml +++ b/.github/workflows/gen_windows_continuous.yml @@ -1,4 +1,3 @@ - name: windows_continuous on: @@ -6,87 +5,74 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' - + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" jobs: build: - strategy: - fail-fast: false runs-on: "vs2017-win2016" steps: - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - target: "x86_64-pc-windows-msvc" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + target: "x86_64-pc-windows-msvc" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target + key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Build (Release mode)" + shell: cmd + run: | - key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Build (Release mode)" - shell: cmd - run: | - - PATH C:\Strawberry\perl\bin;%PATH% - cargo build --all --release - - - name: "Test (Release mode)" - shell: bash - run: | - export BUILD_REASON=Schedule - cargo test --all --release - - - - name: "Package" - shell: bash - run: | - export BUILD_REASON=Schedule - bash ci/deploy.sh - - - - name: "Upload to Nightly Release" - uses: wez/upload-release-assets@releases/v1 - if: github.event.repository.fork == false - with: - files: "WezTerm-*.zip;WezTerm-*.exe" - release-tag: "nightly" - repo-token: "${{ secrets.GITHUB_TOKEN }}" + PATH C:\Strawberry\perl\bin;%PATH% + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: | + export BUILD_REASON=Schedule + cargo test --all --release + - name: "Package" + shell: bash + run: | + export BUILD_REASON=Schedule + bash ci/deploy.sh + - name: "Upload to Nightly Release" + uses: wez/upload-release-assets@releases/v1 + if: github.event.repository.fork == false + with: + files: "WezTerm-*.zip;WezTerm-*.exe" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_windows_tag.yml b/.github/workflows/gen_windows_tag.yml index 1ce610f85..4b8391c9e 100644 --- a/.github/workflows/gen_windows_tag.yml +++ b/.github/workflows/gen_windows_tag.yml @@ -1,4 +1,3 @@ - name: windows_tag on: @@ -6,64 +5,58 @@ on: tags: - "20*" - jobs: build: - strategy: - fail-fast: false runs-on: "vs2017-win2016" steps: - - name: "checkout repo" - uses: actions/checkout@v2 - with: - 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" - uses: actions-rs/toolchain@v1 - with: - profile: "minimal" - toolchain: "stable" - override: true - components: "rustfmt" - target: "x86_64-pc-windows-msvc" - env: - ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" - - name: "Cache cargo" - uses: actions/cache@v2.1.6 - with: - path: | + - name: "checkout repo" + uses: actions/checkout@v2 + with: + 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" + uses: actions-rs/toolchain@v1 + with: + profile: "minimal" + toolchain: "stable" + override: true + components: "rustfmt" + target: "x86_64-pc-windows-msvc" + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: "true" + - name: "Cache cargo" + uses: actions/cache@v2.1.6 + with: + path: | ~/.cargo/registry ~/.cargo/git target + key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" + - name: "Build (Release mode)" + shell: cmd + run: | - key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo" - - name: "Build (Release mode)" - shell: cmd - run: | - - PATH C:\Strawberry\perl\bin;%PATH% - cargo build --all --release - - - name: "Test (Release mode)" - shell: bash - run: "cargo test --all --release" - - name: "Package" - shell: bash - run: "bash ci/deploy.sh" - - name: "Upload to Tagged Release" - uses: softprops/action-gh-release@v1 - if: github.event.repository.fork == false - with: - files: | + PATH C:\Strawberry\perl\bin;%PATH% + cargo build --all --release + - name: "Test (Release mode)" + shell: bash + run: "cargo test --all --release" + - name: "Package" + shell: bash + run: "bash ci/deploy.sh" + - name: "Upload to Tagged Release" + uses: softprops/action-gh-release@v1 + if: github.event.repository.fork == false + with: + files: | WezTerm-*.zip WezTerm-*.exe - - prerelease: true - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + prerelease: true + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/ci/generate-workflows.py b/ci/generate-workflows.py index e5bd8526a..383e829d5 100755 --- a/ci/generate-workflows.py +++ b/ci/generate-workflows.py @@ -3,7 +3,7 @@ import os import sys -def yv(v): +def yv(v, depth=0): if v is True: return "true" if v is False: @@ -13,15 +13,18 @@ def yv(v): if isinstance(v, str): if "\n" in v: - spacer = " " * 12 - return "|\n" + spacer + v.replace("\n", "\n" + spacer) + "\n" + indent = " " * depth + result = "" + for l in v.splitlines(): + result = result + "\n" + (f"{indent}{l}" if l else "") + return "|" + result return '"' + v + '"' return v class Step(object): - def render(self, f, env): + def render(self, f, env, depth=0): raise NotImplementedError(repr(self)) @@ -31,10 +34,11 @@ class RunStep(Step): self.run = run self.shell = shell - def render(self, f, env): - f.write(f" - name: {yv(self.name)}\n") + def render(self, f, env, depth=0): + indent = " " * depth + f.write(f"{indent}- name: {yv(self.name)}\n") if self.shell: - f.write(f" shell: {self.shell}\n") + f.write(f"{indent} shell: {self.shell}\n") run = self.run @@ -43,7 +47,7 @@ class RunStep(Step): if self.shell == "bash": run = f"export {k}={v}\n{run}\n" - f.write(f" run: {yv(run)}\n") + f.write(f"{indent} run: {yv(run, depth + 2)}\n") class ActionStep(Step): @@ -54,19 +58,20 @@ class ActionStep(Step): self.env = env self.condition = condition - def render(self, f, env): - f.write(f" - name: {yv(self.name)}\n") - f.write(f" uses: {self.action}\n") + def render(self, f, env, depth=0): + indent = " " * depth + f.write(f"{indent}- name: {yv(self.name)}\n") + f.write(f"{indent} uses: {self.action}\n") if self.condition: - f.write(f" if: {self.condition}\n") + f.write(f"{indent} if: {self.condition}\n") if self.params: - f.write(" with:\n") + f.write(f"{indent} with:\n") for k, v in self.params.items(): - f.write(f" {k}: {yv(v)}\n") + f.write(f"{indent} {k}: {yv(v, depth + 3)}\n") if self.env: - f.write(" env:\n") + f.write(f"{indent} env:\n") for k, v in self.env.items(): - f.write(f" {k}: {yv(v)}\n") + f.write(f"{indent} {k}: {yv(v, depth + 3)}\n") class CacheStep(ActionStep): @@ -90,9 +95,9 @@ class Job(object): self.steps = steps self.env = env - def render(self, f): + def render(self, f, depth=0): for s in self.steps: - s.render(f, self.env) + s.render(f, self.env, depth) class Target(object): @@ -194,9 +199,7 @@ class Target(object): RunStep( name="Install Git from source", shell="bash", - run=f""" -{pre_reqs} - + run=f"""{pre_reqs} if test ! -x /usr/local/git/bin/git ; then cd /tmp wget https://github.com/git/git/archive/v{GIT_VERS}.tar.gz @@ -204,9 +207,7 @@ if test ! -x /usr/local/git/bin/git ; then cd git-{GIT_VERS} make prefix=/usr/local/git install fi - -ln -s /usr/local/git/bin/git /usr/local/bin/git - """, +ln -s /usr/local/git/bin/git /usr/local/bin/git""", ) ) @@ -257,7 +258,7 @@ ln -s /usr/local/git/bin/git /usr/local/bin/git return [] sudo = "sudo -n " if self.needs_sudo() else "" return [ - RunStep(name="Install System Deps", run=f"{sudo} env PATH=$PATH ./get-deps") + RunStep(name="Install System Deps", run=f"{sudo}env PATH=$PATH ./get-deps") ] def check_formatting(self): @@ -586,21 +587,17 @@ def generate_actions(namer, jobber, trigger, is_continuous): with open(file_name, "w") as f: f.write( - f""" -name: {name} + f"""name: {name} {trigger} - jobs: build: - strategy: - fail-fast: false runs-on: {yv(job.runs_on)} {container} steps: """ ) - job.render(f) + job.render(f, 3) # Sanity check the yaml, if pyyaml is available try: @@ -620,16 +617,16 @@ def generate_pr_actions(): on: pull_request: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/*' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' + - ".cirrus.yml" + - "docs/*" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" """, is_continuous=False, ) @@ -645,16 +642,16 @@ on: - cron: "10 3 * * *" push: branches: - - main + - main paths-ignore: - - '.cirrus.yml' - - 'docs/**' - - 'ci/build-docs.sh' - - 'ci/generate-docs.py' - - 'ci/subst-release-info.py' - - '.github/workflows/pages.yml' - - '.github/ISSUE_TEMPLATE/*' - - '**/*.md' + - ".cirrus.yml" + - "docs/**" + - "ci/build-docs.sh" + - "ci/generate-docs.py" + - "ci/subst-release-info.py" + - ".github/workflows/pages.yml" + - ".github/ISSUE_TEMPLATE/*" + - "**/*.md" """, is_continuous=True, )