ci: Simplify and clean up generate-workflows.py
This commit is contained in:
1 parent
1bf8c34cb2
commit
b56f67579d
34 files changed
+2415
-2879
No files matched your search
@@ -1,111 +1,99 @@
|
||||
|
||||
name: centos7
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "centos:7"
|
||||
steps:
|
||||
- name: "Install SCL"
|
||||
shell: bash
|
||||
run: "yum install -y centos-release-scl-rh"
|
||||
- name: "Update compiler"
|
||||
shell: bash
|
||||
run: "yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++"
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "centos7-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make
|
||||
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install SCL"
|
||||
shell: bash
|
||||
run: "yum install -y centos-release-scl-rh"
|
||||
- name: "Update compiler"
|
||||
shell: bash
|
||||
run: "yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++"
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "centos7-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "centos7"
|
||||
path: "pkg_"
|
||||
key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "centos7"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: centos7_continuous
|
||||
|
||||
on:
|
||||
@@ -6,145 +5,115 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "centos:7"
|
||||
steps:
|
||||
- name: "Install SCL"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y centos-release-scl-rh
|
||||
|
||||
|
||||
- name: "Update compiler"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++
|
||||
|
||||
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "centos7-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
|
||||
yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make
|
||||
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y curl
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install SCL"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y centos-release-scl-rh
|
||||
- name: "Update compiler"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "centos7-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y curl
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
source /opt/rh/devtoolset-9/enable && cargo build --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
source /opt/rh/devtoolset-9/enable && cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos7.rpm
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
source /opt/rh/devtoolset-9/enable && cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
source /opt/rh/devtoolset-9/enable && cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos7.rpm
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: centos7_tag
|
||||
|
||||
on:
|
||||
@@ -6,93 +5,84 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "centos:7"
|
||||
steps:
|
||||
- name: "Install SCL"
|
||||
shell: bash
|
||||
run: "yum install -y centos-release-scl-rh"
|
||||
- name: "Update compiler"
|
||||
shell: bash
|
||||
run: "yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++"
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "centos7-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make
|
||||
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install SCL"
|
||||
shell: bash
|
||||
run: "yum install -y centos-release-scl-rh"
|
||||
- name: "Update compiler"
|
||||
shell: bash
|
||||
run: "yum install -y devtoolset-9-gcc devtoolset-9-gcc-c++"
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "centos7-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
yum install -y wget curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker make
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "centos7-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "source /opt/rh/devtoolset-9/enable && cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "source /opt/rh/devtoolset-9/enable && cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,92 +1,85 @@
|
||||
|
||||
name: centos8
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "centos:8"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "centos8"
|
||||
path: "pkg_"
|
||||
key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "centos8"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: centos8_continuous
|
||||
|
||||
on:
|
||||
@@ -6,128 +5,102 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "centos:8"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf install -y 'dnf-command(config-manager)'
|
||||
|
||||
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf config-manager --set-enabled powertools
|
||||
|
||||
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y curl
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf install -y 'dnf-command(config-manager)'
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
dnf config-manager --set-enabled powertools
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y curl
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos8.rpm
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos8.rpm
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: centos8_tag
|
||||
|
||||
on:
|
||||
@@ -6,74 +5,70 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "centos:8"
|
||||
steps:
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install config manager"
|
||||
shell: bash
|
||||
run: "dnf install -y 'dnf-command(config-manager)'"
|
||||
- name: "Enable PowerTools"
|
||||
shell: bash
|
||||
run: "dnf config-manager --set-enabled powertools"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "centos8-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,92 +1,85 @@
|
||||
|
||||
name: debian10.3
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "debian:10.3"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "debian10.3"
|
||||
path: "pkg_"
|
||||
key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "debian10.3"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: debian10.3_continuous
|
||||
|
||||
on:
|
||||
@@ -6,121 +5,97 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "debian:10.3"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
|
||||
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt update
|
||||
|
||||
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y curl
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt update
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y curl
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: debian10.3_tag
|
||||
|
||||
on:
|
||||
@@ -6,75 +5,70 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "debian:10.3"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
key: "debian10.3-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
wezterm-*.deb
|
||||
wezterm-*.xz
|
||||
wezterm-*.tar.gz
|
||||
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,92 +1,85 @@
|
||||
|
||||
name: debian11
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "debian:11"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "debian11"
|
||||
path: "pkg_"
|
||||
key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "debian11"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: debian11_continuous
|
||||
|
||||
on:
|
||||
@@ -6,121 +5,97 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "debian:11"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
|
||||
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt update
|
||||
|
||||
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y curl
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt update
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y curl
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: debian11_tag
|
||||
|
||||
on:
|
||||
@@ -6,75 +5,70 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "debian:11"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
key: "debian11-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
wezterm-*.deb
|
||||
wezterm-*.xz
|
||||
wezterm-*.tar.gz
|
||||
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,111 +1,99 @@
|
||||
|
||||
name: debian9.12
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "debian:9.12"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "debian9.12-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make
|
||||
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "debian9.12-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "debian9.12"
|
||||
path: "pkg_"
|
||||
key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "debian9.12"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: debian9.12_continuous
|
||||
|
||||
on:
|
||||
@@ -6,138 +5,110 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "debian:9.12"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
|
||||
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt update
|
||||
|
||||
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "debian9.12-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
|
||||
apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make
|
||||
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y curl
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt update
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "debian9.12-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y curl
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: debian9.12_tag
|
||||
|
||||
on:
|
||||
@@ -6,94 +5,84 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "debian:9.12"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "debian9.12-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
|
||||
apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make
|
||||
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Cache Git installation"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: "/usr/local/git"
|
||||
key: "debian9.12-git-2.26.2"
|
||||
- name: "Install Git from source"
|
||||
shell: bash
|
||||
run: |
|
||||
apt-get install -y wget libcurl4-openssl-dev libexpat-dev gettext libssl-dev libz-dev gcc libextutils-autoinstall-perl make
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v2.26.2.tar.gz
|
||||
tar xzf v2.26.2.tar.gz
|
||||
cd git-2.26.2
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
key: "debian9.12-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
wezterm-*.deb
|
||||
wezterm-*.xz
|
||||
wezterm-*.tar.gz
|
||||
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,86 +1,79 @@
|
||||
|
||||
name: fedora33
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:33"
|
||||
steps:
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "fedora33"
|
||||
path: "pkg_"
|
||||
key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "fedora33"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: fedora33_continuous
|
||||
|
||||
on:
|
||||
@@ -6,114 +5,92 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:33"
|
||||
steps:
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y curl
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y curl
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora33.rpm
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora33.rpm
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: fedora33_tag
|
||||
|
||||
on:
|
||||
@@ -6,68 +5,64 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:33"
|
||||
steps:
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "fedora33-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,86 +1,79 @@
|
||||
|
||||
name: fedora34
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:34"
|
||||
steps:
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "fedora34"
|
||||
path: "pkg_"
|
||||
key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "fedora34"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: fedora34_continuous
|
||||
|
||||
on:
|
||||
@@ -6,114 +5,92 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:34"
|
||||
steps:
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y curl
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
yum install -y curl
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora34.rpm
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora34.rpm
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: fedora34_tag
|
||||
|
||||
on:
|
||||
@@ -6,68 +5,64 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "fedora:34"
|
||||
steps:
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "yum install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "yum install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "fedora34-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move RPM"
|
||||
shell: bash
|
||||
run: "mv ~/rpmbuild/RPMS/*/*.rpm ."
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.rpm"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
+78
-102
@@ -1,115 +1,91 @@
|
||||
|
||||
name: macos
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "macos-11"
|
||||
|
||||
steps:
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Install Rust (ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
rustup target add aarch64-apple-darwin
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo fmt --all -- --check
|
||||
- name: "Build (Release mode Intel)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target x86_64-apple-darwin --all --release
|
||||
- name: "Build (Release mode ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target aarch64-apple-darwin --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo test --target x86_64-apple-darwin --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
bash ci/deploy.sh
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
mkdir pkg_
|
||||
mv *.zip pkg_
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Install Rust (ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
rustup target add aarch64-apple-darwin
|
||||
|
||||
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo fmt --all -- --check
|
||||
|
||||
|
||||
- name: "Build (Release mode Intel)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target x86_64-apple-darwin --all --release
|
||||
|
||||
|
||||
- name: "Build (Release mode ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target aarch64-apple-darwin --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo test --target x86_64-apple-darwin --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
mkdir pkg_
|
||||
mv *.zip pkg_
|
||||
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "macos"
|
||||
path: "pkg_"
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "macos"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: macos_continuous
|
||||
|
||||
on:
|
||||
@@ -6,114 +5,95 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "macos-11"
|
||||
|
||||
steps:
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --prune --unshallow
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Install Rust (ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
rustup target add aarch64-apple-darwin
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Install Rust (ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
rustup target add aarch64-apple-darwin
|
||||
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
- name: "Build (Release mode Intel)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target x86_64-apple-darwin --all --release
|
||||
|
||||
|
||||
- name: "Build (Release mode Intel)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target x86_64-apple-darwin --all --release
|
||||
|
||||
- name: "Build (Release mode ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target aarch64-apple-darwin --all --release
|
||||
|
||||
|
||||
- name: "Build (Release mode ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target aarch64-apple-darwin --all --release
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo test --target x86_64-apple-darwin --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo test --target x86_64-apple-darwin --all --release
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
bash ci/deploy.sh
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "WezTerm-*.zip"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "WezTerm-*.zip"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: macos_tag
|
||||
|
||||
on:
|
||||
@@ -6,106 +5,85 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "macos-11"
|
||||
|
||||
steps:
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Install Rust (ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
rustup target add aarch64-apple-darwin
|
||||
|
||||
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode Intel)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target x86_64-apple-darwin --all --release
|
||||
|
||||
|
||||
- name: "Build (Release mode ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target aarch64-apple-darwin --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo test --target x86_64-apple-darwin --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "WezTerm-*.zip"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: "Checkout homebrew tap"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: "wez/homebrew-wezterm"
|
||||
path: "homebrew-wezterm"
|
||||
token: "${{ secrets.GH_PAT }}"
|
||||
- name: "Update homebrew tap formula"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cp wezterm.rb homebrew-wezterm/Casks/wezterm.rb
|
||||
|
||||
|
||||
- name: "Commit homebrew tap changes"
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "Automated update to match latest tag"
|
||||
repository: "homebrew-wezterm"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Install Rust (ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
rustup target add aarch64-apple-darwin
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode Intel)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target x86_64-apple-darwin --all --release
|
||||
- name: "Build (Release mode ARM)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo build --target aarch64-apple-darwin --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cargo test --target x86_64-apple-darwin --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
bash ci/deploy.sh
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "WezTerm-*.zip"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: "Checkout homebrew tap"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: "wez/homebrew-wezterm"
|
||||
path: "homebrew-wezterm"
|
||||
token: "${{ secrets.GH_PAT }}"
|
||||
- name: "Update homebrew tap formula"
|
||||
shell: bash
|
||||
run: |
|
||||
export MACOSX_DEPLOYMENT_TARGET=10.9
|
||||
cp wezterm.rb homebrew-wezterm/Casks/wezterm.rb
|
||||
- name: "Commit homebrew tap changes"
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "Automated update to match latest tag"
|
||||
repository: "homebrew-wezterm"
|
||||
@@ -1,93 +1,86 @@
|
||||
|
||||
name: ubuntu18
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-18.04"
|
||||
|
||||
steps:
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "sudo -n apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "sudo -n apt-get install -y git"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "sudo -n apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "sudo -n apt-get install -y git"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "sudo -n env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Source Tarball"
|
||||
shell: bash
|
||||
run: "bash ci/source-archive.sh"
|
||||
- name: "Build AppImage"
|
||||
shell: bash
|
||||
run: "bash ci/appimage.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
mv *.AppImage *.zsync pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "ubuntu18"
|
||||
path: "pkg_"
|
||||
key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "sudo -n env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Source Tarball"
|
||||
shell: bash
|
||||
run: "bash ci/source-archive.sh"
|
||||
- name: "Build AppImage"
|
||||
shell: bash
|
||||
run: "bash ci/appimage.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
mv *.AppImage *.zsync pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "ubuntu18"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: ubuntu18_continuous
|
||||
|
||||
on:
|
||||
@@ -6,121 +5,97 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-18.04"
|
||||
|
||||
steps:
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
sudo -n apt update
|
||||
|
||||
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
sudo -n apt-get install -y git
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
sudo -n apt update
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
sudo -n apt-get install -y git
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
sudo -n env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Source Tarball"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/source-archive.sh
|
||||
|
||||
|
||||
- name: "Build AppImage"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/appimage.sh
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz;*.AppImage;*.zsync"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
sudo -n env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Source Tarball"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/source-archive.sh
|
||||
- name: "Build AppImage"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/appimage.sh
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz;*.AppImage;*.zsync"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: ubuntu18_tag
|
||||
|
||||
on:
|
||||
@@ -6,91 +5,86 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-18.04"
|
||||
|
||||
steps:
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "sudo -n apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "sudo -n apt-get install -y git"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "sudo -n apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "sudo -n apt-get install -y git"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "sudo -n env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Source Tarball"
|
||||
shell: bash
|
||||
run: "bash ci/source-archive.sh"
|
||||
- name: "Build AppImage"
|
||||
shell: bash
|
||||
run: "bash ci/appimage.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
key: "ubuntu18-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "sudo -n env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Source Tarball"
|
||||
shell: bash
|
||||
run: "bash ci/source-archive.sh"
|
||||
- name: "Build AppImage"
|
||||
shell: bash
|
||||
run: "bash ci/appimage.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
wezterm-*.deb
|
||||
wezterm-*.xz
|
||||
wezterm-*.tar.gz
|
||||
*.AppImage
|
||||
*.zsync
|
||||
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: "Checkout linuxbrew tap"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: "wez/homebrew-wezterm-linuxbrew"
|
||||
path: "linuxbrew-wezterm"
|
||||
token: "${{ secrets.GH_PAT }}"
|
||||
- name: "Update linuxbrew tap formula"
|
||||
shell: bash
|
||||
run: "cp wezterm-linuxbrew.rb linuxbrew-wezterm/Formula/wezterm.rb"
|
||||
- name: "Commit linuxbrew tap changes"
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "Automated update to match latest tag"
|
||||
repository: "linuxbrew-wezterm"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: "Checkout linuxbrew tap"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: "wez/homebrew-wezterm-linuxbrew"
|
||||
path: "linuxbrew-wezterm"
|
||||
token: "${{ secrets.GH_PAT }}"
|
||||
- name: "Update linuxbrew tap formula"
|
||||
shell: bash
|
||||
run: "cp wezterm-linuxbrew.rb linuxbrew-wezterm/Formula/wezterm.rb"
|
||||
- name: "Commit linuxbrew tap changes"
|
||||
uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "Automated update to match latest tag"
|
||||
repository: "linuxbrew-wezterm"
|
||||
@@ -1,92 +1,85 @@
|
||||
|
||||
name: ubuntu20.04
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "ubuntu:20.04"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "ubuntu20.04"
|
||||
path: "pkg_"
|
||||
key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.deb *.xz pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "ubuntu20.04"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: ubuntu20.04_continuous
|
||||
|
||||
on:
|
||||
@@ -6,121 +5,97 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "ubuntu:20.04"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
|
||||
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt update
|
||||
|
||||
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y git
|
||||
|
||||
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y curl
|
||||
|
||||
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt update
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y git
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
apt-get install -y curl
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
|
||||
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
env PATH=$PATH ./get-deps
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "wezterm-*.deb;wezterm-*.xz;wezterm-*.tar.gz"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: ubuntu20.04_tag
|
||||
|
||||
on:
|
||||
@@ -6,75 +5,70 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "ubuntu-latest"
|
||||
container: "ubuntu:20.04"
|
||||
steps:
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "set APT to non-interactive"
|
||||
shell: bash
|
||||
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
||||
- name: "Update APT"
|
||||
shell: bash
|
||||
run: "apt update"
|
||||
- name: "Install git"
|
||||
shell: bash
|
||||
run: "apt-get install -y git"
|
||||
- name: "Install curl"
|
||||
shell: bash
|
||||
run: "apt-get install -y curl"
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
|
||||
key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: " env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
key: "ubuntu20.04-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Install System Deps"
|
||||
shell: bash
|
||||
run: "env PATH=$PATH ./get-deps"
|
||||
- name: "Build (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo build --all --release"
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
wezterm-*.deb
|
||||
wezterm-*.xz
|
||||
wezterm-*.tar.gz
|
||||
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,82 +1,74 @@
|
||||
|
||||
name: windows
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "vs2017-win2016"
|
||||
|
||||
steps:
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
target: "x86_64-pc-windows-msvc"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
target: "x86_64-pc-windows-msvc"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: cmd
|
||||
run: |
|
||||
|
||||
key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Check formatting"
|
||||
shell: bash
|
||||
run: "cargo fmt --all -- --check"
|
||||
- name: "Build (Release mode)"
|
||||
shell: cmd
|
||||
run: |
|
||||
|
||||
PATH C:\Strawberry\perl\bin;%PATH%
|
||||
cargo build --all --release
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.zip *.exe pkg_
|
||||
|
||||
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "windows"
|
||||
path: "pkg_"
|
||||
PATH C:\Strawberry\perl\bin;%PATH%
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Move Package for artifact upload"
|
||||
shell: bash
|
||||
run: |
|
||||
mkdir pkg_
|
||||
mv *.zip *.exe pkg_
|
||||
- name: "Upload artifact"
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: "windows"
|
||||
path: "pkg_"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: windows_continuous
|
||||
|
||||
on:
|
||||
@@ -6,87 +5,74 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "vs2017-win2016"
|
||||
|
||||
steps:
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
|
||||
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
|
||||
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
target: "x86_64-pc-windows-msvc"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
git fetch --prune --unshallow
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
target: "x86_64-pc-windows-msvc"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Build (Release mode)"
|
||||
shell: cmd
|
||||
run: |
|
||||
|
||||
key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Build (Release mode)"
|
||||
shell: cmd
|
||||
run: |
|
||||
|
||||
PATH C:\Strawberry\perl\bin;%PATH%
|
||||
cargo build --all --release
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
|
||||
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
|
||||
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "WezTerm-*.zip;WezTerm-*.exe"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
PATH C:\Strawberry\perl\bin;%PATH%
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
cargo test --all --release
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: |
|
||||
export BUILD_REASON=Schedule
|
||||
bash ci/deploy.sh
|
||||
- name: "Upload to Nightly Release"
|
||||
uses: wez/upload-release-assets@releases/v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: "WezTerm-*.zip;WezTerm-*.exe"
|
||||
release-tag: "nightly"
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
name: windows_tag
|
||||
|
||||
on:
|
||||
@@ -6,64 +5,58 @@ on:
|
||||
tags:
|
||||
- "20*"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: "vs2017-win2016"
|
||||
|
||||
steps:
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
target: "x86_64-pc-windows-msvc"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
- name: "checkout repo"
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: "recursive"
|
||||
- name: "Fetch tags"
|
||||
shell: bash
|
||||
run: "git fetch --depth=1 origin +refs/tags/*:refs/tags/*"
|
||||
- name: "Fetch tag/branch history"
|
||||
shell: bash
|
||||
run: "git fetch --prune --unshallow"
|
||||
- name: "Install Rust"
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
profile: "minimal"
|
||||
toolchain: "stable"
|
||||
override: true
|
||||
components: "rustfmt"
|
||||
target: "x86_64-pc-windows-msvc"
|
||||
env:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
|
||||
- name: "Cache cargo"
|
||||
uses: actions/cache@v2.1.6
|
||||
with:
|
||||
path: |
|
||||
~/.cargo/registry
|
||||
~/.cargo/git
|
||||
target
|
||||
key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Build (Release mode)"
|
||||
shell: cmd
|
||||
run: |
|
||||
|
||||
key: "windows-x86_64-pc-windows-msvc-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
|
||||
- name: "Build (Release mode)"
|
||||
shell: cmd
|
||||
run: |
|
||||
|
||||
PATH C:\Strawberry\perl\bin;%PATH%
|
||||
cargo build --all --release
|
||||
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
PATH C:\Strawberry\perl\bin;%PATH%
|
||||
cargo build --all --release
|
||||
- name: "Test (Release mode)"
|
||||
shell: bash
|
||||
run: "cargo test --all --release"
|
||||
- name: "Package"
|
||||
shell: bash
|
||||
run: "bash ci/deploy.sh"
|
||||
- name: "Upload to Tagged Release"
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: github.event.repository.fork == false
|
||||
with:
|
||||
files: |
|
||||
WezTerm-*.zip
|
||||
WezTerm-*.exe
|
||||
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
Reference in new issue
Block a user