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 }}"
|
||||
+46
-49
@@ -3,7 +3,7 @@ import os
|
||||
import sys
|
||||
|
||||
|
||||
def yv(v):
|
||||
def yv(v, depth=0):
|
||||
if v is True:
|
||||
return "true"
|
||||
if v is False:
|
||||
@@ -13,15 +13,18 @@ def yv(v):
|
||||
|
||||
if isinstance(v, str):
|
||||
if "\n" in v:
|
||||
spacer = " " * 12
|
||||
return "|\n" + spacer + v.replace("\n", "\n" + spacer) + "\n"
|
||||
indent = " " * depth
|
||||
result = ""
|
||||
for l in v.splitlines():
|
||||
result = result + "\n" + (f"{indent}{l}" if l else "")
|
||||
return "|" + result
|
||||
return '"' + v + '"'
|
||||
|
||||
return v
|
||||
|
||||
|
||||
class Step(object):
|
||||
def render(self, f, env):
|
||||
def render(self, f, env, depth=0):
|
||||
raise NotImplementedError(repr(self))
|
||||
|
||||
|
||||
@@ -31,10 +34,11 @@ class RunStep(Step):
|
||||
self.run = run
|
||||
self.shell = shell
|
||||
|
||||
def render(self, f, env):
|
||||
f.write(f" - name: {yv(self.name)}\n")
|
||||
def render(self, f, env, depth=0):
|
||||
indent = " " * depth
|
||||
f.write(f"{indent}- name: {yv(self.name)}\n")
|
||||
if self.shell:
|
||||
f.write(f" shell: {self.shell}\n")
|
||||
f.write(f"{indent} shell: {self.shell}\n")
|
||||
|
||||
run = self.run
|
||||
|
||||
@@ -43,7 +47,7 @@ class RunStep(Step):
|
||||
if self.shell == "bash":
|
||||
run = f"export {k}={v}\n{run}\n"
|
||||
|
||||
f.write(f" run: {yv(run)}\n")
|
||||
f.write(f"{indent} run: {yv(run, depth + 2)}\n")
|
||||
|
||||
|
||||
class ActionStep(Step):
|
||||
@@ -54,19 +58,20 @@ class ActionStep(Step):
|
||||
self.env = env
|
||||
self.condition = condition
|
||||
|
||||
def render(self, f, env):
|
||||
f.write(f" - name: {yv(self.name)}\n")
|
||||
f.write(f" uses: {self.action}\n")
|
||||
def render(self, f, env, depth=0):
|
||||
indent = " " * depth
|
||||
f.write(f"{indent}- name: {yv(self.name)}\n")
|
||||
f.write(f"{indent} uses: {self.action}\n")
|
||||
if self.condition:
|
||||
f.write(f" if: {self.condition}\n")
|
||||
f.write(f"{indent} if: {self.condition}\n")
|
||||
if self.params:
|
||||
f.write(" with:\n")
|
||||
f.write(f"{indent} with:\n")
|
||||
for k, v in self.params.items():
|
||||
f.write(f" {k}: {yv(v)}\n")
|
||||
f.write(f"{indent} {k}: {yv(v, depth + 3)}\n")
|
||||
if self.env:
|
||||
f.write(" env:\n")
|
||||
f.write(f"{indent} env:\n")
|
||||
for k, v in self.env.items():
|
||||
f.write(f" {k}: {yv(v)}\n")
|
||||
f.write(f"{indent} {k}: {yv(v, depth + 3)}\n")
|
||||
|
||||
|
||||
class CacheStep(ActionStep):
|
||||
@@ -90,9 +95,9 @@ class Job(object):
|
||||
self.steps = steps
|
||||
self.env = env
|
||||
|
||||
def render(self, f):
|
||||
def render(self, f, depth=0):
|
||||
for s in self.steps:
|
||||
s.render(f, self.env)
|
||||
s.render(f, self.env, depth)
|
||||
|
||||
|
||||
class Target(object):
|
||||
@@ -194,9 +199,7 @@ class Target(object):
|
||||
RunStep(
|
||||
name="Install Git from source",
|
||||
shell="bash",
|
||||
run=f"""
|
||||
{pre_reqs}
|
||||
|
||||
run=f"""{pre_reqs}
|
||||
if test ! -x /usr/local/git/bin/git ; then
|
||||
cd /tmp
|
||||
wget https://github.com/git/git/archive/v{GIT_VERS}.tar.gz
|
||||
@@ -204,9 +207,7 @@ if test ! -x /usr/local/git/bin/git ; then
|
||||
cd git-{GIT_VERS}
|
||||
make prefix=/usr/local/git install
|
||||
fi
|
||||
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
""",
|
||||
ln -s /usr/local/git/bin/git /usr/local/bin/git""",
|
||||
)
|
||||
)
|
||||
|
||||
@@ -257,7 +258,7 @@ ln -s /usr/local/git/bin/git /usr/local/bin/git
|
||||
return []
|
||||
sudo = "sudo -n " if self.needs_sudo() else ""
|
||||
return [
|
||||
RunStep(name="Install System Deps", run=f"{sudo} env PATH=$PATH ./get-deps")
|
||||
RunStep(name="Install System Deps", run=f"{sudo}env PATH=$PATH ./get-deps")
|
||||
]
|
||||
|
||||
def check_formatting(self):
|
||||
@@ -586,21 +587,17 @@ def generate_actions(namer, jobber, trigger, is_continuous):
|
||||
|
||||
with open(file_name, "w") as f:
|
||||
f.write(
|
||||
f"""
|
||||
name: {name}
|
||||
f"""name: {name}
|
||||
{trigger}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
runs-on: {yv(job.runs_on)}
|
||||
{container}
|
||||
steps:
|
||||
"""
|
||||
)
|
||||
|
||||
job.render(f)
|
||||
job.render(f, 3)
|
||||
|
||||
# Sanity check the yaml, if pyyaml is available
|
||||
try:
|
||||
@@ -620,16 +617,16 @@ def generate_pr_actions():
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/*'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
- ".cirrus.yml"
|
||||
- "docs/*"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
""",
|
||||
is_continuous=False,
|
||||
)
|
||||
@@ -645,16 +642,16 @@ on:
|
||||
- cron: "10 3 * * *"
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- main
|
||||
paths-ignore:
|
||||
- '.cirrus.yml'
|
||||
- 'docs/**'
|
||||
- 'ci/build-docs.sh'
|
||||
- 'ci/generate-docs.py'
|
||||
- 'ci/subst-release-info.py'
|
||||
- '.github/workflows/pages.yml'
|
||||
- '.github/ISSUE_TEMPLATE/*'
|
||||
- '**/*.md'
|
||||
- ".cirrus.yml"
|
||||
- "docs/**"
|
||||
- "ci/build-docs.sh"
|
||||
- "ci/generate-docs.py"
|
||||
- "ci/subst-release-info.py"
|
||||
- ".github/workflows/pages.yml"
|
||||
- ".github/ISSUE_TEMPLATE/*"
|
||||
- "**/*.md"
|
||||
""",
|
||||
is_continuous=True,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user