diff --git a/.github/workflows/gen_centos7.yml b/.github/workflows/gen_centos7.yml index 124ebeaa1..5fc1ea93f 100644 --- a/.github/workflows/gen_centos7.yml +++ b/.github/workflows/gen_centos7.yml @@ -24,27 +24,37 @@ jobs: uses: actions/cache@v1 with: path: "/usr/local/git" - key: "centos7-git" + key: "centos7-git-2.25.0" - name: "Install Git from source" shell: bash run: | - VERS=2.25.0 + 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 - yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make cd /tmp - wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-$VERS.tar.gz - tar xzf git-$VERS.tar.gz - cd git-$VERS + wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.25.0.tar.gz + tar xzf git-2.25.0.tar.gz + cd git-2.25.0 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@v1 + 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: @@ -69,7 +79,7 @@ jobs: key: "centos7-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" - name: "Install System Deps" shell: bash - run: "sudo ./get-deps" + run: "sudo -n ./get-deps" - name: "Check formatting" shell: bash run: "cargo fmt --all -- --check" @@ -87,6 +97,7 @@ jobs: run: | mkdir pkg_ mv ~/rpmbuild/RPMS/*/*.rpm pkg_ + - name: "Upload artifact" uses: actions/upload-artifact@master diff --git a/.github/workflows/gen_centos7_continuous.yml b/.github/workflows/gen_centos7_continuous.yml index 7a0c04561..44a7dd287 100644 --- a/.github/workflows/gen_centos7_continuous.yml +++ b/.github/workflows/gen_centos7_continuous.yml @@ -24,20 +24,19 @@ jobs: uses: actions/cache@v1 with: path: "/usr/local/git" - key: "centos7-git" + key: "centos7-git-2.25.0" - name: "Install Git from source" shell: bash run: | export BUILD_REASON=Schedule - VERS=2.25.0 + 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 - yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make cd /tmp - wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-$VERS.tar.gz - tar xzf git-$VERS.tar.gz - cd git-$VERS + wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.25.0.tar.gz + tar xzf git-2.25.0.tar.gz + cd git-2.25.0 make prefix=/usr/local/git install fi @@ -45,8 +44,31 @@ jobs: + - name: "Install Curl" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y curl + + - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -73,7 +95,7 @@ jobs: shell: bash run: | export BUILD_REASON=Schedule - sudo ./get-deps + sudo -n ./get-deps - name: "Build (Release mode)" diff --git a/.github/workflows/gen_centos7_tag.yml b/.github/workflows/gen_centos7_tag.yml index 278f93630..acd751680 100644 --- a/.github/workflows/gen_centos7_tag.yml +++ b/.github/workflows/gen_centos7_tag.yml @@ -21,27 +21,37 @@ jobs: uses: actions/cache@v1 with: path: "/usr/local/git" - key: "centos7-git" + key: "centos7-git-2.25.0" - name: "Install Git from source" shell: bash run: | - VERS=2.25.0 + 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 - yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make cd /tmp - wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-$VERS.tar.gz - tar xzf git-$VERS.tar.gz - cd git-$VERS + wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.25.0.tar.gz + tar xzf git-2.25.0.tar.gz + cd git-2.25.0 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@v1 + 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: @@ -66,7 +76,7 @@ jobs: key: "centos7-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" - name: "Install System Deps" shell: bash - run: "sudo ./get-deps" + run: "sudo -n ./get-deps" - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" diff --git a/.github/workflows/gen_debian10.3.yml b/.github/workflows/gen_debian10.3.yml new file mode 100644 index 000000000..3063df8c1 --- /dev/null +++ b/.github/workflows/gen_debian10.3.yml @@ -0,0 +1,90 @@ + +name: debian10.3 + +on: + push: + branches: + - master + pull_request: + branches: + - master + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-latest" + container: "debian:10.3" + steps: + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install Sudo" + shell: bash + run: "apt-get install -y sudo" + - name: "Install System Git" + shell: bash + run: "sudo -n 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "debian10.3-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "debian10.3-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "debian10.3-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: "sudo -n ./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 new file mode 100644 index 000000000..d69c6dc3a --- /dev/null +++ b/.github/workflows/gen_debian10.3_continuous.yml @@ -0,0 +1,117 @@ + +name: debian10.3_continuous + +on: + schedule: + - cron: "10 * * * *" + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-latest" + container: "debian:10.3" + steps: + - name: "Update APT" + shell: bash + run: | + export BUILD_REASON=Schedule + apt update + + + - name: "Install Sudo" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y sudo + + + - name: "Install System Git" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "debian10.3-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "debian10.3-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "debian10.3-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n ./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 + 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 new file mode 100644 index 000000000..9739b447b --- /dev/null +++ b/.github/workflows/gen_debian10.3_tag.yml @@ -0,0 +1,82 @@ + +name: debian10.3_tag + +on: + push: + tags: + - "20*" + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-latest" + container: "debian:10.3" + steps: + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install Sudo" + shell: bash + run: "apt-get install -y sudo" + - name: "Install System Git" + shell: bash + run: "sudo -n 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "debian10.3-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "debian10.3-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "debian10.3-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: "sudo -n ./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 + with: + files: | + wezterm-*.deb + wezterm-*.xz + wezterm-*.tar.gz + + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_debian9.12.yml b/.github/workflows/gen_debian9.12.yml new file mode 100644 index 000000000..29e8df5b3 --- /dev/null +++ b/.github/workflows/gen_debian9.12.yml @@ -0,0 +1,109 @@ + +name: debian9.12 + +on: + push: + branches: + - master + pull_request: + branches: + - master + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-latest" + container: "debian:9.12" + steps: + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install Sudo" + shell: bash + run: "apt-get install -y sudo" + - name: "Cache Git installation" + uses: actions/cache@v1 + with: + path: "/usr/local/git" + key: "debian9.12-git-2.25.0" + - 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://mirrors.edge.kernel.org/pub/software/scm/git/git-2.25.0.tar.gz + tar xzf git-2.25.0.tar.gz + cd git-2.25.0 + 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "debian9.12-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "debian9.12-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "debian9.12-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: "sudo -n ./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 new file mode 100644 index 000000000..654ac95e9 --- /dev/null +++ b/.github/workflows/gen_debian9.12_continuous.yml @@ -0,0 +1,134 @@ + +name: debian9.12_continuous + +on: + schedule: + - cron: "10 * * * *" + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-latest" + container: "debian:9.12" + steps: + - name: "Update APT" + shell: bash + run: | + export BUILD_REASON=Schedule + apt update + + + - name: "Install Sudo" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y sudo + + + - name: "Cache Git installation" + uses: actions/cache@v1 + with: + path: "/usr/local/git" + key: "debian9.12-git-2.25.0" + - 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://mirrors.edge.kernel.org/pub/software/scm/git/git-2.25.0.tar.gz + tar xzf git-2.25.0.tar.gz + cd git-2.25.0 + 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "debian9.12-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "debian9.12-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "debian9.12-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n ./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 + 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 new file mode 100644 index 000000000..ac92212a3 --- /dev/null +++ b/.github/workflows/gen_debian9.12_tag.yml @@ -0,0 +1,101 @@ + +name: debian9.12_tag + +on: + push: + tags: + - "20*" + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-latest" + container: "debian:9.12" + steps: + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install Sudo" + shell: bash + run: "apt-get install -y sudo" + - name: "Cache Git installation" + uses: actions/cache@v1 + with: + path: "/usr/local/git" + key: "debian9.12-git-2.25.0" + - 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://mirrors.edge.kernel.org/pub/software/scm/git/git-2.25.0.tar.gz + tar xzf git-2.25.0.tar.gz + cd git-2.25.0 + 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "debian9.12-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "debian9.12-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "debian9.12-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: "sudo -n ./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 + with: + files: | + wezterm-*.deb + wezterm-*.xz + wezterm-*.tar.gz + + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_fedora31.yml b/.github/workflows/gen_fedora31.yml index bfc32fbfc..88e9ecb75 100644 --- a/.github/workflows/gen_fedora31.yml +++ b/.github/workflows/gen_fedora31.yml @@ -22,9 +22,20 @@ jobs: run: "yum install -y sudo" - name: "Install System Git" shell: bash - run: "sudo yum install -y git" + run: "sudo -n yum install -y git" + - name: "Install Curl" + shell: bash + run: "yum install -y curl" - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -49,7 +60,7 @@ jobs: key: "fedora31-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" - name: "Install System Deps" shell: bash - run: "sudo ./get-deps" + run: "sudo -n ./get-deps" - name: "Check formatting" shell: bash run: "cargo fmt --all -- --check" @@ -67,6 +78,7 @@ jobs: run: | mkdir pkg_ mv ~/rpmbuild/RPMS/*/*.rpm pkg_ + - name: "Upload artifact" uses: actions/upload-artifact@master diff --git a/.github/workflows/gen_fedora31_continuous.yml b/.github/workflows/gen_fedora31_continuous.yml index ff0626f7a..cb413485c 100644 --- a/.github/workflows/gen_fedora31_continuous.yml +++ b/.github/workflows/gen_fedora31_continuous.yml @@ -24,11 +24,34 @@ jobs: shell: bash run: | export BUILD_REASON=Schedule - sudo yum install -y git + sudo -n yum install -y git + + + - name: "Install Curl" + shell: bash + run: | + export BUILD_REASON=Schedule + yum install -y curl - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -55,7 +78,7 @@ jobs: shell: bash run: | export BUILD_REASON=Schedule - sudo ./get-deps + sudo -n ./get-deps - name: "Build (Release mode)" diff --git a/.github/workflows/gen_fedora31_tag.yml b/.github/workflows/gen_fedora31_tag.yml index 896a7b41f..859347da4 100644 --- a/.github/workflows/gen_fedora31_tag.yml +++ b/.github/workflows/gen_fedora31_tag.yml @@ -19,9 +19,20 @@ jobs: run: "yum install -y sudo" - name: "Install System Git" shell: bash - run: "sudo yum install -y git" + run: "sudo -n yum install -y git" + - name: "Install Curl" + shell: bash + run: "yum install -y curl" - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -46,7 +57,7 @@ jobs: key: "fedora31-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" - name: "Install System Deps" shell: bash - run: "sudo ./get-deps" + run: "sudo -n ./get-deps" - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" diff --git a/.github/workflows/gen_macos.yml b/.github/workflows/gen_macos.yml index c0f8736d3..b91f1c8ac 100644 --- a/.github/workflows/gen_macos.yml +++ b/.github/workflows/gen_macos.yml @@ -18,7 +18,23 @@ jobs: steps: - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -45,7 +61,7 @@ jobs: shell: bash run: | export MACOSX_DEPLOYMENT_TARGET=10.9 - sudo ./get-deps + sudo -n ./get-deps - name: "Check formatting" @@ -83,6 +99,7 @@ jobs: mkdir pkg_ mv *.zip pkg_ + - name: "Upload artifact" uses: actions/upload-artifact@master diff --git a/.github/workflows/gen_macos_continuous.yml b/.github/workflows/gen_macos_continuous.yml index a7e426717..f5863e29f 100644 --- a/.github/workflows/gen_macos_continuous.yml +++ b/.github/workflows/gen_macos_continuous.yml @@ -14,7 +14,27 @@ jobs: steps: - name: "checkout repo" - uses: actions/checkout@v1 + 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: "Install Rust" uses: actions-rs/toolchain@v1 with: @@ -42,7 +62,7 @@ jobs: run: | export BUILD_REASON=Schedule export MACOSX_DEPLOYMENT_TARGET=10.9 - sudo ./get-deps + sudo -n ./get-deps diff --git a/.github/workflows/gen_macos_tag.yml b/.github/workflows/gen_macos_tag.yml index c39205fc3..5f7d94569 100644 --- a/.github/workflows/gen_macos_tag.yml +++ b/.github/workflows/gen_macos_tag.yml @@ -15,7 +15,23 @@ jobs: steps: - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -42,7 +58,7 @@ jobs: shell: bash run: | export MACOSX_DEPLOYMENT_TARGET=10.9 - sudo ./get-deps + sudo -n ./get-deps - name: "Build (Release mode)" diff --git a/.github/workflows/gen_ubuntu16.yml b/.github/workflows/gen_ubuntu16.yml index c8ff15317..5590aacf5 100644 --- a/.github/workflows/gen_ubuntu16.yml +++ b/.github/workflows/gen_ubuntu16.yml @@ -17,8 +17,19 @@ jobs: runs-on: "ubuntu-16.04" steps: + - name: "Install System Git" + shell: bash + run: "sudo -n apt-get install -y git" - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -43,7 +54,7 @@ jobs: key: "ubuntu16-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" - name: "Install System Deps" shell: bash - run: "sudo ./get-deps" + run: "sudo -n ./get-deps" - name: "Check formatting" shell: bash run: "cargo fmt --all -- --check" @@ -56,11 +67,16 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.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 *.AppImage pkg_ + mv *.deb *.xz pkg_ + mv *.AppImage pkg_ + - name: "Upload artifact" uses: actions/upload-artifact@master diff --git a/.github/workflows/gen_ubuntu16_continuous.yml b/.github/workflows/gen_ubuntu16_continuous.yml index 0f5c37856..30b24c06e 100644 --- a/.github/workflows/gen_ubuntu16_continuous.yml +++ b/.github/workflows/gen_ubuntu16_continuous.yml @@ -13,8 +13,31 @@ jobs: runs-on: "ubuntu-16.04" steps: + - name: "Install System Git" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n apt-get install -y git + + - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -41,7 +64,7 @@ jobs: shell: bash run: | export BUILD_REASON=Schedule - sudo ./get-deps + sudo -n ./get-deps - name: "Build (Release mode)" @@ -65,9 +88,16 @@ jobs: bash ci/deploy.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 with: - files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" + files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz;*.AppImage" release-tag: "nightly" repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_ubuntu16_tag.yml b/.github/workflows/gen_ubuntu16_tag.yml index 83edd0198..42d3f5ff5 100644 --- a/.github/workflows/gen_ubuntu16_tag.yml +++ b/.github/workflows/gen_ubuntu16_tag.yml @@ -14,8 +14,19 @@ jobs: runs-on: "ubuntu-16.04" steps: + - name: "Install System Git" + shell: bash + run: "sudo -n apt-get install -y git" - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -40,7 +51,7 @@ jobs: key: "ubuntu16-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" - name: "Install System Deps" shell: bash - run: "sudo ./get-deps" + run: "sudo -n ./get-deps" - name: "Build (Release mode)" shell: bash run: "cargo build --all --release" @@ -50,6 +61,9 @@ jobs: - name: "Package" shell: bash run: "bash ci/deploy.sh" + - name: "Build AppImage" + shell: bash + run: "bash ci/appimage.sh" - name: "Upload to Tagged Release" uses: softprops/action-gh-release@v1 with: @@ -57,6 +71,7 @@ jobs: wezterm-*.deb wezterm-*.xz wezterm-*.tar.gz + *.AppImage env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_ubuntu18.yml b/.github/workflows/gen_ubuntu18.yml new file mode 100644 index 000000000..c71e00326 --- /dev/null +++ b/.github/workflows/gen_ubuntu18.yml @@ -0,0 +1,81 @@ + +name: ubuntu18 + +on: + push: + branches: + - master + pull_request: + branches: + - master + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-18.04" + + steps: + - name: "Install System 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "ubuntu18-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "ubuntu18-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "ubuntu18-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: "sudo -n ./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: "ubuntu18" + path: "pkg_" diff --git a/.github/workflows/gen_ubuntu18_continuous.yml b/.github/workflows/gen_ubuntu18_continuous.yml new file mode 100644 index 000000000..0396941a9 --- /dev/null +++ b/.github/workflows/gen_ubuntu18_continuous.yml @@ -0,0 +1,96 @@ + +name: ubuntu18_continuous + +on: + schedule: + - cron: "10 * * * *" + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-18.04" + + steps: + - name: "Install System 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "ubuntu18-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "ubuntu18-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "ubuntu18-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n ./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 + with: + files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_ubuntu18_tag.yml b/.github/workflows/gen_ubuntu18_tag.yml new file mode 100644 index 000000000..499aa27b6 --- /dev/null +++ b/.github/workflows/gen_ubuntu18_tag.yml @@ -0,0 +1,73 @@ + +name: ubuntu18_tag + +on: + push: + tags: + - "20*" + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-18.04" + + steps: + - name: "Install System 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "ubuntu18-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "ubuntu18-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "ubuntu18-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: "sudo -n ./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 + with: + files: | + wezterm-*.deb + wezterm-*.xz + wezterm-*.tar.gz + + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_ubuntu19.10.yml b/.github/workflows/gen_ubuntu19.10.yml new file mode 100644 index 000000000..eda8b6dee --- /dev/null +++ b/.github/workflows/gen_ubuntu19.10.yml @@ -0,0 +1,90 @@ + +name: ubuntu19.10 + +on: + push: + branches: + - master + pull_request: + branches: + - master + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-latest" + container: "ubuntu:19.10" + steps: + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install Sudo" + shell: bash + run: "apt-get install -y sudo" + - name: "Install System Git" + shell: bash + run: "sudo -n 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "ubuntu19.10-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "ubuntu19.10-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "ubuntu19.10-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: "sudo -n ./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: "ubuntu19.10" + path: "pkg_" diff --git a/.github/workflows/gen_ubuntu19.10_continuous.yml b/.github/workflows/gen_ubuntu19.10_continuous.yml new file mode 100644 index 000000000..9dc40825a --- /dev/null +++ b/.github/workflows/gen_ubuntu19.10_continuous.yml @@ -0,0 +1,117 @@ + +name: ubuntu19.10_continuous + +on: + schedule: + - cron: "10 * * * *" + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-latest" + container: "ubuntu:19.10" + steps: + - name: "Update APT" + shell: bash + run: | + export BUILD_REASON=Schedule + apt update + + + - name: "Install Sudo" + shell: bash + run: | + export BUILD_REASON=Schedule + apt-get install -y sudo + + + - name: "Install System Git" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "ubuntu19.10-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "ubuntu19.10-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "ubuntu19.10-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: | + export BUILD_REASON=Schedule + sudo -n ./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 + with: + files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz" + release-tag: "nightly" + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_ubuntu19.10_tag.yml b/.github/workflows/gen_ubuntu19.10_tag.yml new file mode 100644 index 000000000..8eb1c29d0 --- /dev/null +++ b/.github/workflows/gen_ubuntu19.10_tag.yml @@ -0,0 +1,82 @@ + +name: ubuntu19.10_tag + +on: + push: + tags: + - "20*" + + +jobs: + build: + strategy: + fail-fast: false + runs-on: "ubuntu-latest" + container: "ubuntu:19.10" + steps: + - name: "Update APT" + shell: bash + run: "apt update" + - name: "Install Sudo" + shell: bash + run: "apt-get install -y sudo" + - name: "Install System Git" + shell: bash + run: "sudo -n 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" + - name: "Cache cargo registry" + uses: actions/cache@v1 + with: + path: "~/.cargo/registry" + key: "ubuntu19.10-None-${{ hashFiles('Cargo.lock') }}-cargo-registry" + - name: "Cache cargo index" + uses: actions/cache@v1 + with: + path: "~/.cargo/git" + key: "ubuntu19.10-None-${{ hashFiles('Cargo.lock') }}-cargo-index" + - name: "Cache cargo build" + uses: actions/cache@v1 + with: + path: "target" + key: "ubuntu19.10-None-${{ hashFiles('Cargo.lock') }}-cargo-build-target" + - name: "Install System Deps" + shell: bash + run: "sudo -n ./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 + with: + files: | + wezterm-*.deb + wezterm-*.xz + wezterm-*.tar.gz + + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/gen_windows.yml b/.github/workflows/gen_windows.yml index 8111381d9..c29423a3a 100644 --- a/.github/workflows/gen_windows.yml +++ b/.github/workflows/gen_windows.yml @@ -18,7 +18,15 @@ jobs: steps: - name: "checkout repo" - uses: actions/checkout@v1 + 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: @@ -63,6 +71,7 @@ jobs: run: | mkdir pkg_ mv *.zip pkg_ + - name: "Upload artifact" uses: actions/upload-artifact@master diff --git a/.github/workflows/gen_windows_continuous.yml b/.github/workflows/gen_windows_continuous.yml index 1ef883d78..892ec97ad 100644 --- a/.github/workflows/gen_windows_continuous.yml +++ b/.github/workflows/gen_windows_continuous.yml @@ -14,7 +14,23 @@ jobs: steps: - name: "checkout repo" - uses: actions/checkout@v1 + 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: diff --git a/.github/workflows/gen_windows_tag.yml b/.github/workflows/gen_windows_tag.yml index 67c3da974..eb1e04207 100644 --- a/.github/workflows/gen_windows_tag.yml +++ b/.github/workflows/gen_windows_tag.yml @@ -15,7 +15,15 @@ jobs: steps: - name: "checkout repo" - uses: actions/checkout@v1 + 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: diff --git a/ci/appimage.sh b/ci/appimage.sh index f31990598..ce415ad58 100755 --- a/ci/appimage.sh +++ b/ci/appimage.sh @@ -17,3 +17,14 @@ install -Dm644 assets/wezterm.desktop AppDir/usr/share/applications/org.wezfurlo --appdir AppDir \ --output appimage \ --desktop-file assets/wezterm.desktop + +TAG_NAME=${TAG_NAME:-$(git describe --tags)} +TAG_NAME=${TAG_NAME:-$(date +'%Y%m%d-%H%M%S')-$(git log --format=%h -1)} +distro=$(lsb_release -is) +distver=$(lsb_release -rs) + +if [[ "$BUILD_REASON" == "Schedule" ]] ; then + mv WezTerm*.AppImage WezTerm-nightly-$distro$distver.AppImage +else + mv WezTerm*.AppImage WezTerm-$TAG_NAME-$distro$distver.AppImage +fi diff --git a/ci/deploy.sh b/ci/deploy.sh index c525907f7..59acabfb9 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -48,7 +48,9 @@ case $OSTYPE in 7z a -tzip $zipname $zipdir ;; linux-gnu) - case `lsb_release -ds` in + distro=$(lsb_release -is) + distver=$(lsb_release -rs) + case "$distro" in *Fedora*|*CentOS*) WEZTERM_RPM_VERSION=$(echo ${TAG_NAME#nightly-} | tr - _) cat > wezterm.spec <