Generate builds for more platforms

tweak some container names

fixup container names and regenerate the config

Ensure that curl is installed

the rust toolchain stuff wants curl

run apt update before apt install

centralize updating apt, and install sudo

revise get-deps script for slimmer debian images

more container related tweaks

get-deps: Don't require lsb-release on debianish systems

more get-deps improvements

Explicitly ask GH actions to recursively checkout the repo

Explicitly install git

fetch tags and tweak git build for debian systems

moar adjustments

remove deb8 (its wayland is too old), fixup debian publish

Ensure git build deps are installed always, tidy up sudo usage
This commit is contained in:
Wez Furlong committed 2020-05-03 15:11:35 -07:00
1 parent cec3b457b6
commit ba804589fd
31 files changed
+1622 -121

No files matched your search

+19 -8
View File
@@ -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
+30 -8
View File
@@ -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)"
+18 -8
View File
@@ -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"
+90
View File
@@ -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_"
@@ -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 }}"
+82
View File
@@ -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 }}"
+109
View File
@@ -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_"
@@ -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 }}"
+101
View File
@@ -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 }}"
+15 -3
View File
@@ -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
+26 -3
View File
@@ -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)"
+14 -3
View File
@@ -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"
+19 -2
View File
@@ -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
+22 -2
View File
@@ -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
+18 -2
View File
@@ -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)"
+19 -3
View File
@@ -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
+33 -3
View File
@@ -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 }}"
+17 -2
View File
@@ -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 }}"
+81
View File
@@ -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_"
@@ -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 }}"
+73
View File
@@ -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 }}"
+90
View File
@@ -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_"
@@ -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 }}"
+82
View File
@@ -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 }}"
+10 -1
View File
@@ -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
+17 -1
View File
@@ -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:
+9 -1
View File
@@ -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:
+11
View File
@@ -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
+5 -7
View File
@@ -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 <<EOF
@@ -113,17 +115,13 @@ EOF
install -Dm644 assets/wezterm.desktop pkg/debian/usr/share/applications/org.wezfurlong.wezterm.desktop
install -Dm644 assets/wezterm.appdata.xml pkg/debian/usr/share/metainfo/wezterm.appdata.xml
if [[ "$BUILD_REASON" == "Schedule" ]] ; then
debname=wezterm-nightly
debname=wezterm-nightly.$distro$distver
else
debname=wezterm-$TAG_NAME
debname=wezterm-$TAG_NAME.$distro$distver
fi
fakeroot dpkg-deb --build pkg/debian $debname.deb
tar cJf $debname.tar.xz -C pkg/debian/usr/bin wezterm
rm -rf pkg
./ci/appimage.sh
if [[ "$BUILD_REASON" == "Schedule" ]] ; then
mv WezTerm*.AppImage WezTerm-nightly.AppImage
fi
;;
esac
./ci/source-archive.sh
+115 -42
View File
@@ -75,11 +75,9 @@ class CacheStep(ActionStep):
class CheckoutStep(ActionStep):
def __init__(self, name="checkout repo"):
# We use v1 rather than v2 or later because v1 handles
# submodules in a convenient way. Subsequent versions
# require multiple lines of boilerplate that seem fragile
# if things change in the future.
super().__init__(name, action="actions/checkout@v1")
super().__init__(name,
action="actions/checkout@v2",
params={"submodules":"recursive"})
class Job(object):
@@ -102,6 +100,8 @@ class Target(object):
container=None,
bootstrap_git=False,
rust_target=None,
continuous_only=False,
app_image=False,
):
if not name:
if container:
@@ -113,6 +113,8 @@ class Target(object):
self.container = container
self.bootstrap_git = bootstrap_git
self.rust_target = rust_target
self.continuous_only = continuous_only
self.app_image = app_image
def uses_yum(self):
if "fedora" in self.name:
@@ -121,41 +123,69 @@ class Target(object):
return True
return False
def uses_apt(self):
if "ubuntu" in self.name:
return True
if "debian" in self.name:
return True
return False
def install_sudo(self):
if self.uses_yum():
return [RunStep("Install Sudo", "yum install -y sudo")]
if self.uses_apt() and self.container:
return [RunStep("Install Sudo", "apt-get install -y sudo")]
return []
def install_curl(self):
steps = []
if self.uses_yum():
steps.append(RunStep("Install Curl", "yum install -y curl"))
if self.uses_apt() and self.container:
steps.append(RunStep("Install Curl", "apt-get install -y curl"))
return steps
def install_git(self):
steps = []
if self.bootstrap_git:
return [
GIT_VERS = "2.25.0"
steps.append(
CacheStep(
"Cache Git installation",
path="/usr/local/git",
key=f"{self.name}-git",
),
RunStep(
name="Install Git from source",
shell="bash",
run="""
VERS=2.25.0
key=f"{self.name}-git-{GIT_VERS}",
))
pre_reqs = ""
if self.uses_yum():
pre_reqs = "yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make"
elif self.uses_apt():
pre_reqs = "apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make"
steps.append(RunStep(
name="Install Git from source",
shell="bash",
run=f"""
{pre_reqs}
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-{GIT_VERS}.tar.gz
tar xzf git-{GIT_VERS}.tar.gz
cd git-{GIT_VERS}
make prefix=/usr/local/git install
fi
ln -s /usr/local/git/bin/git /usr/local/bin/git
""",
),
]
if self.uses_yum():
return [RunStep(name="Install System Git", run="sudo yum install -y git")]
return []
"""))
else:
if self.uses_yum():
steps.append(RunStep(name="Install System Git", run="sudo -n yum install -y git"))
elif self.uses_apt():
steps.append(RunStep(name="Install System Git", run="sudo -n apt-get install -y git"))
return steps
def install_rust(self):
key_prefix = (
@@ -193,7 +223,7 @@ ln -s /usr/local/git/bin/git /usr/local/bin/git
def install_system_deps(self):
if "win" in self.name:
return []
return [RunStep(name="Install System Deps", run="sudo ./get-deps")]
return [RunStep(name="Install System Deps", run="sudo -n ./get-deps")]
def check_formatting(self):
return [RunStep(name="Check formatting", run="cargo fmt --all -- --check")]
@@ -215,16 +245,21 @@ cargo build --all --release""",
return [RunStep(name="Test (Release mode)", run="cargo test --all --release")]
def package(self):
return [RunStep("Package", "bash ci/deploy.sh")]
steps = [RunStep("Package", "bash ci/deploy.sh")]
if self.app_image:
steps.append(RunStep("Build AppImage", "bash ci/appimage.sh"))
return steps
def upload_artifact(self):
run = "mkdir pkg_\n"
if self.uses_yum():
run += "mv ~/rpmbuild/RPMS/*/*.rpm pkg_"
run += "mv ~/rpmbuild/RPMS/*/*.rpm pkg_\n"
if ("win" in self.name) or ("mac" in self.name):
run += "mv *.zip pkg_"
if "ubuntu" in self.name:
run += "mv *.deb *.xz *.AppImage pkg_"
run += "mv *.zip pkg_\n"
if ("ubuntu" in self.name) or ("debian" in self.name):
run += "mv *.deb *.xz pkg_\n"
if self.app_image:
run += "mv *.AppImage pkg_\n"
return [
RunStep("Move Package for artifact upload", run),
@@ -235,6 +270,19 @@ cargo build --all --release""",
),
]
def asset_patterns(self):
patterns = []
if self.uses_yum():
patterns += ["wezterm-*.rpm"]
elif ("win" in self.name) or ("mac" in self.name):
patterns += ["WezTerm-*.zip"]
elif ("ubuntu" in self.name) or ("debian" in self.name):
patterns += ["wezterm-*.deb", "wezterm-*.xz", "wezterm-*.tar.gz"]
if self.app_image:
patterns.append("*.AppImage")
return patterns
def upload_asset_nightly(self):
steps = []
@@ -245,11 +293,8 @@ cargo build --all --release""",
f"mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-{self.name}.rpm",
)
)
patterns = ["wezterm-*.rpm"]
elif ("win" in self.name) or ("mac" in self.name):
patterns = ["WezTerm-*.zip"]
elif "ubuntu" in self.name:
patterns = ["wezterm-*.deb", "wezterm-*.xz", "wezterm-*.tar.gz"]
patterns = self.asset_patterns()
return steps + [
ActionStep(
@@ -268,11 +313,8 @@ cargo build --all --release""",
if self.uses_yum():
steps.append(RunStep("Move RPM", "mv ~/rpmbuild/RPMS/*/*.rpm ."))
patterns = ["wezterm-*.rpm"]
elif ("win" in self.name) or ("mac" in self.name):
patterns = ["WezTerm-*.zip"]
elif "ubuntu" in self.name:
patterns = ["wezterm-*.deb", "wezterm-*.xz", "wezterm-*.tar.gz"]
patterns = self.asset_patterns()
return steps + [
ActionStep(
@@ -291,9 +333,24 @@ cargo build --all --release""",
def prep_environment(self):
steps = []
if self.container:
if self.uses_apt():
steps.append(RunStep("Update APT", "apt update"))
steps += self.install_sudo()
steps += self.install_git()
steps += [CheckoutStep()]
steps += self.install_curl()
steps += [
CheckoutStep(),
# We need tags in order to use git describe for build/packaging
RunStep(
"Fetch tags",
"git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
),
RunStep(
"Fetch tag/branch history",
"git fetch --prune --unshallow"
),
]
steps += self.install_rust()
steps += self.install_system_deps()
return steps
@@ -336,7 +393,18 @@ cargo build --all --release""",
TARGETS = [
Target(name="ubuntu:16", os="ubuntu-16.04"),
Target(name="ubuntu:16", os="ubuntu-16.04", app_image=True),
Target(name="ubuntu:18", os="ubuntu-18.04", continuous_only=True),
Target(container="ubuntu:19.10", continuous_only=True),
# The container gets stuck while running get-deps, so disable for now
# Target(container="ubuntu:20.04", continuous_only=True),
# debian 8's wayland libraries are too old for wayland-client
# Target(container="debian:8.11", continuous_only=True, bootstrap_git=True),
Target(container="debian:9.12", continuous_only=True, bootstrap_git=True),
Target(container="debian:10.3", continuous_only=True),
Target(name="macos", os="macos-latest"),
Target(container="fedora:31"),
Target(container="centos:7", bootstrap_git=True),
@@ -344,8 +412,10 @@ TARGETS = [
]
def generate_actions(namer, jobber, trigger):
def generate_actions(namer, jobber, trigger, is_continuous):
for t in TARGETS:
#if t.continuous_only and not is_continuous:
# continue
name = namer(t).replace(":", "")
print(name)
job = jobber(t)
@@ -397,6 +467,7 @@ on:
branches:
- master
""",
is_continuous=False,
)
@@ -409,6 +480,7 @@ on:
schedule:
- cron: "10 * * * *"
""",
is_continuous=True,
)
@@ -422,6 +494,7 @@ on:
tags:
- "20*"
""",
is_continuous=True,
)
+33 -22
View File
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# Centos may not have lsb_release installed
if test -e /etc/centos-release || test -e /etc/fedora-release; then
@@ -23,28 +23,39 @@ if test -e /etc/centos-release || test -e /etc/fedora-release; then
exit $?
fi
case `lsb_release -ds` in
Ubuntu*|Debian*|PureOS*)
apt-get install -y \
bsdutils \
cmake \
fakeroot \
libdbus-1-dev \
libegl1-mesa-dev \
libssl-dev \
libfontconfig1-dev \
libxcb-ewmh-dev \
libxcb-icccm4-dev \
libxcb-keysyms1-dev \
libxcb-shm0-dev \
libxcb-xkb-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
xdg-utils \
xorg-dev
;;
if test -e /etc/debian_version ; then
apt-get install -y \
bsdutils \
cmake \
fakeroot \
gcc \
g++ \
libdbus-1-dev \
libegl1-mesa-dev \
libssl-dev \
libfontconfig1-dev \
libwayland-dev \
libxcb-ewmh-dev \
libxcb-icccm4-dev \
libxcb-keysyms1-dev \
libxcb-shm0-dev \
libxcb-xkb-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
lsb-release \
python3 \
xdg-utils \
xorg-dev
exit $?
fi
case $OSTYPE in
darwin*|msys)
exit 0
;;
*)
echo "Please contribute the commands to install the deps"
echo "For `lsb_release -ds`"
;;
exit 1
;;
esac