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:
1 parent
cec3b457b6
commit
ba804589fd
31 files changed
+1622
-121
No files matched your search
@@ -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
|
||||
|
||||
@@ -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)"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 }}"
|
||||
@@ -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 }}"
|
||||
@@ -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 }}"
|
||||
@@ -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 }}"
|
||||
@@ -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
|
||||
|
||||
@@ -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)"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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)"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 }}"
|
||||
@@ -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 }}"
|
||||
@@ -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 }}"
|
||||
@@ -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 }}"
|
||||
@@ -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 }}"
|
||||
@@ -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 }}"
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user