1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

ci: update workflows

Signed-off-by: Jakub Panek <me@panekj.dev>
This commit is contained in:
Jakub Panek 2022-02-15 15:58:57 +00:00 committed by Wez Furlong
parent dc728b3895
commit 724baf12b5
48 changed files with 1421 additions and 412 deletions

84
.github/workflows/gen_alpine3.12.yml vendored Normal file
View File

@ -0,0 +1,84 @@
name: alpine3.12
on:
pull_request:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/*"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.12"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.12"
path: "~/packages/x86_64/wezterm-*.apk"

View File

@ -0,0 +1,108 @@
name: alpine3.12_continuous
on:
schedule:
- cron: "10 3 * * *"
push:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/**"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.12"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
BUILD_REASON: "Schedule"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.12"
path: "~/packages/x86_64/wezterm-*.apk"
retention-days: 5
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
name: "alpine3.12"
- name: "Upload to Nightly Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly ~/packages/x86_64/wezterm-*.apk"

102
.github/workflows/gen_alpine3.12_tag.yml vendored Normal file
View File

@ -0,0 +1,102 @@
name: alpine3.12_tag
on:
push:
tags:
- "20*"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.12"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
BUILD_REASON: "Schedule"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.12"
path: |
~/packages/x86_64/wezterm-*.apk
~/.abuild/*.pub
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
name: "alpine3.12"
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) ~/packages/x86_64/wezterm-*.apk ~/.abuild/*.pub"

84
.github/workflows/gen_alpine3.13.yml vendored Normal file
View File

@ -0,0 +1,84 @@
name: alpine3.13
on:
pull_request:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/*"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.13"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.13-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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.13"
path: "~/packages/x86_64/wezterm-*.apk"

View File

@ -0,0 +1,108 @@
name: alpine3.13_continuous
on:
schedule:
- cron: "10 3 * * *"
push:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/**"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.13"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
BUILD_REASON: "Schedule"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.13-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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.13"
path: "~/packages/x86_64/wezterm-*.apk"
retention-days: 5
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
name: "alpine3.13"
- name: "Upload to Nightly Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly ~/packages/x86_64/wezterm-*.apk"

102
.github/workflows/gen_alpine3.13_tag.yml vendored Normal file
View File

@ -0,0 +1,102 @@
name: alpine3.13_tag
on:
push:
tags:
- "20*"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.13"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
BUILD_REASON: "Schedule"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.13-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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.13"
path: |
~/packages/x86_64/wezterm-*.apk
~/.abuild/*.pub
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
name: "alpine3.13"
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) ~/packages/x86_64/wezterm-*.apk ~/.abuild/*.pub"

84
.github/workflows/gen_alpine3.14.yml vendored Normal file
View File

@ -0,0 +1,84 @@
name: alpine3.14
on:
pull_request:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/*"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.14"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.14-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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.14"
path: "~/packages/x86_64/wezterm-*.apk"

View File

@ -0,0 +1,108 @@
name: alpine3.14_continuous
on:
schedule:
- cron: "10 3 * * *"
push:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/**"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.14"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
BUILD_REASON: "Schedule"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.14-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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.14"
path: "~/packages/x86_64/wezterm-*.apk"
retention-days: 5
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
name: "alpine3.14"
- name: "Upload to Nightly Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly ~/packages/x86_64/wezterm-*.apk"

102
.github/workflows/gen_alpine3.14_tag.yml vendored Normal file
View File

@ -0,0 +1,102 @@
name: alpine3.14_tag
on:
push:
tags:
- "20*"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.14"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
BUILD_REASON: "Schedule"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.14-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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.14"
path: |
~/packages/x86_64/wezterm-*.apk
~/.abuild/*.pub
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
name: "alpine3.14"
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) ~/packages/x86_64/wezterm-*.apk ~/.abuild/*.pub"

84
.github/workflows/gen_alpine3.15.yml vendored Normal file
View File

@ -0,0 +1,84 @@
name: alpine3.15
on:
pull_request:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/*"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.15"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.15-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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.15"
path: "~/packages/x86_64/wezterm-*.apk"

View File

@ -0,0 +1,108 @@
name: alpine3.15_continuous
on:
schedule:
- cron: "10 3 * * *"
push:
branches:
- main
paths-ignore:
- ".cirrus.yml"
- "docs/**"
- "ci/build-docs.sh"
- "ci/generate-docs.py"
- "ci/subst-release-info.py"
- ".github/workflows/pages.yml"
- ".github/workflows/verify-pages.yml"
- ".github/ISSUE_TEMPLATE/*"
- "**/*.md"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.15"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
BUILD_REASON: "Schedule"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.15-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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.15"
path: "~/packages/x86_64/wezterm-*.apk"
retention-days: 5
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
name: "alpine3.15"
- name: "Upload to Nightly Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber nightly ~/packages/x86_64/wezterm-*.apk"

102
.github/workflows/gen_alpine3.15_tag.yml vendored Normal file
View File

@ -0,0 +1,102 @@
name: alpine3.15_tag
on:
push:
tags:
- "20*"
jobs:
build:
runs-on: "ubuntu-latest"
container: "alpine:3.15"
env:
RUSTFLAGS: "-C target-feature=-crt-static"
BUILD_REASON: "Schedule"
steps:
- name: "Upgrade system"
shell: sh
run: "apk upgrade --update-cache"
- name: "Install CI dependencies"
shell: sh
run: "apk add nodejs zstd wget bash"
- name: "Allow root login"
shell: bash
run: "sed 's/root:!/root:*/g' -i /etc/shadow"
- name: "Install git"
shell: bash
run: "apk add git"
- name: "Install curl"
shell: bash
run: "apk add curl"
- name: "Install openssh"
shell: bash
run: "apk add openssh"
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
submodules: "recursive"
- 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@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: "alpine3.15-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 artifact"
uses: actions/upload-artifact@v3
with:
name: "alpine3.15"
path: |
~/packages/x86_64/wezterm-*.apk
~/.abuild/*.pub
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
- name: "Download artifact"
uses: actions/download-artifact@v3
with:
name: "alpine3.15"
- name: "Create pre-release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh bash ci/create-release.sh $(ci/tag-name.sh)"
- name: "Upload to Tagged Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: "bash ci/retry.sh gh release upload --clobber $(ci/tag-name.sh) ~/packages/x86_64/wezterm-*.apk ~/.abuild/*.pub"

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream8"
steps:
- name: "Install config manager"
shell: bash

View File

@ -21,42 +21,31 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream8"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf install -y 'dnf-command(config-manager)'
run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Enable PowerTools"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf config-manager --set-enabled powertools
run: "dnf config-manager --set-enabled powertools"
- name: "Install git"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y git
run: "yum install -y git"
- name: "Install curl"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y curl
run: "yum install -y curl"
- name: "Ensure /run/sshd exists"
shell: bash
run: |
export BUILD_REASON=Schedule
mkdir -p /run/sshd
run: "mkdir -p /run/sshd"
- name: "Install openssh-server"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y openssh-server
run: "yum install -y openssh-server"
- name: "Workaround git permissions issue"
shell: bash
run: |
export BUILD_REASON=Schedule
git config --global --add safe.directory /__w/wezterm/wezterm
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -80,29 +69,19 @@ jobs:
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
run: "env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Move RPM"
shell: bash
run: |
export BUILD_REASON=Schedule
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos8.rpm
run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos8.rpm"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -113,6 +92,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream8"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
@ -76,6 +79,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream9"
steps:
- name: "Install config manager"
shell: bash

View File

@ -21,42 +21,31 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream9"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf install -y 'dnf-command(config-manager)'
run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Enable CRB repo for X bits"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf config-manager --set-enabled crb
run: "dnf config-manager --set-enabled crb"
- name: "Install git"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y git
run: "yum install -y git"
- name: "Install curl-minimal"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y curl-minimal
run: "yum install -y curl-minimal"
- name: "Ensure /run/sshd exists"
shell: bash
run: |
export BUILD_REASON=Schedule
mkdir -p /run/sshd
run: "mkdir -p /run/sshd"
- name: "Install openssh-server"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y openssh-server
run: "yum install -y openssh-server"
- name: "Workaround git permissions issue"
shell: bash
run: |
export BUILD_REASON=Schedule
git config --global --add safe.directory /__w/wezterm/wezterm
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -80,29 +69,19 @@ jobs:
key: "centos9-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |
export BUILD_REASON=Schedule
env PATH=$PATH ./get-deps
run: "env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Move RPM"
shell: bash
run: |
export BUILD_REASON=Schedule
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos9.rpm
run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-centos9.rpm"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -113,6 +92,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "quay.io/centos/centos:stream9"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
@ -76,6 +79,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:10.3"
steps:
- name: "set APT to non-interactive"
shell: bash

View File

@ -21,47 +21,34 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:10.3"
env:
BUILD_REASON: "Schedule"
steps:
- name: "set APT to non-interactive"
shell: bash
run: |
export BUILD_REASON=Schedule
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
- name: "Update APT"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
run: "apt update"
- name: "Install git"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y git
run: "apt-get install -y git"
- name: "Install curl"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y curl
run: "apt-get install -y curl"
- name: "Update APT"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
run: "apt update"
- name: "Ensure /run/sshd exists"
shell: bash
run: |
export BUILD_REASON=Schedule
mkdir -p /run/sshd
run: "mkdir -p /run/sshd"
- name: "Install openssh-server"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y openssh-server
run: "apt-get install -y openssh-server"
- name: "Workaround git permissions issue"
shell: bash
run: |
export BUILD_REASON=Schedule
git config --global --add safe.directory /__w/wezterm/wezterm
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -85,24 +72,16 @@ jobs:
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
run: "env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -115,6 +94,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:10.3"
env:
BUILD_REASON: "Schedule"
steps:
- name: "set APT to non-interactive"
shell: bash
@ -78,6 +81,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:11"
steps:
- name: "set APT to non-interactive"
shell: bash

View File

@ -21,47 +21,34 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:11"
env:
BUILD_REASON: "Schedule"
steps:
- name: "set APT to non-interactive"
shell: bash
run: |
export BUILD_REASON=Schedule
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
- name: "Update APT"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
run: "apt update"
- name: "Install git"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y git
run: "apt-get install -y git"
- name: "Install curl"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y curl
run: "apt-get install -y curl"
- name: "Update APT"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
run: "apt update"
- name: "Ensure /run/sshd exists"
shell: bash
run: |
export BUILD_REASON=Schedule
mkdir -p /run/sshd
run: "mkdir -p /run/sshd"
- name: "Install openssh-server"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y openssh-server
run: "apt-get install -y openssh-server"
- name: "Workaround git permissions issue"
shell: bash
run: |
export BUILD_REASON=Schedule
git config --global --add safe.directory /__w/wezterm/wezterm
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -85,24 +72,16 @@ jobs:
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
run: "env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -115,6 +94,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:11"
env:
BUILD_REASON: "Schedule"
steps:
- name: "set APT to non-interactive"
shell: bash
@ -78,6 +81,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:9.12"
steps:
- name: "set APT to non-interactive"
shell: bash

View File

@ -21,17 +21,16 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:9.12"
env:
BUILD_REASON: "Schedule"
steps:
- name: "set APT to non-interactive"
shell: bash
run: |
export BUILD_REASON=Schedule
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
- name: "Update APT"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
run: "apt update"
- name: "Cache Git installation"
uses: actions/cache@v3
with:
@ -40,7 +39,6 @@ jobs:
- 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
@ -52,29 +50,19 @@ jobs:
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
run: "apt-get install -y curl"
- name: "Update APT"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
run: "apt update"
- name: "Ensure /run/sshd exists"
shell: bash
run: |
export BUILD_REASON=Schedule
mkdir -p /run/sshd
run: "mkdir -p /run/sshd"
- name: "Install openssh-server"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y openssh-server
run: "apt-get install -y openssh-server"
- name: "Workaround git permissions issue"
shell: bash
run: |
export BUILD_REASON=Schedule
git config --global --add safe.directory /__w/wezterm/wezterm
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -98,24 +86,16 @@ jobs:
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
run: "env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -128,6 +108,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "debian:9.12"
env:
BUILD_REASON: "Schedule"
steps:
- name: "set APT to non-interactive"
shell: bash
@ -92,6 +95,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "fedora:33"
steps:
- name: "Install config manager"
shell: bash

View File

@ -21,37 +21,28 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "fedora:33"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf install -y 'dnf-command(config-manager)'
run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Install git"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y git
run: "yum install -y git"
- name: "Install curl"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y curl
run: "yum install -y curl"
- name: "Ensure /run/sshd exists"
shell: bash
run: |
export BUILD_REASON=Schedule
mkdir -p /run/sshd
run: "mkdir -p /run/sshd"
- name: "Install openssh-server"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y openssh-server
run: "yum install -y openssh-server"
- name: "Workaround git permissions issue"
shell: bash
run: |
export BUILD_REASON=Schedule
git config --global --add safe.directory /__w/wezterm/wezterm
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -75,29 +66,19 @@ jobs:
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
run: "env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Move RPM"
shell: bash
run: |
export BUILD_REASON=Schedule
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora33.rpm
run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora33.rpm"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -108,6 +89,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "fedora:33"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
@ -73,6 +76,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "fedora:34"
steps:
- name: "Install config manager"
shell: bash

View File

@ -21,37 +21,28 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "fedora:34"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf install -y 'dnf-command(config-manager)'
run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Install git"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y git
run: "yum install -y git"
- name: "Install curl"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y curl
run: "yum install -y curl"
- name: "Ensure /run/sshd exists"
shell: bash
run: |
export BUILD_REASON=Schedule
mkdir -p /run/sshd
run: "mkdir -p /run/sshd"
- name: "Install openssh-server"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y openssh-server
run: "yum install -y openssh-server"
- name: "Workaround git permissions issue"
shell: bash
run: |
export BUILD_REASON=Schedule
git config --global --add safe.directory /__w/wezterm/wezterm
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -75,29 +66,19 @@ jobs:
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
run: "env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Move RPM"
shell: bash
run: |
export BUILD_REASON=Schedule
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora34.rpm
run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora34.rpm"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -108,6 +89,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "fedora:34"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
@ -73,6 +76,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "fedora:35"
steps:
- name: "Install config manager"
shell: bash

View File

@ -21,37 +21,28 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "fedora:35"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
run: |
export BUILD_REASON=Schedule
dnf install -y 'dnf-command(config-manager)'
run: "dnf install -y 'dnf-command(config-manager)'"
- name: "Install git"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y git
run: "yum install -y git"
- name: "Install curl"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y curl
run: "yum install -y curl"
- name: "Ensure /run/sshd exists"
shell: bash
run: |
export BUILD_REASON=Schedule
mkdir -p /run/sshd
run: "mkdir -p /run/sshd"
- name: "Install openssh-server"
shell: bash
run: |
export BUILD_REASON=Schedule
yum install -y openssh-server
run: "yum install -y openssh-server"
- name: "Workaround git permissions issue"
shell: bash
run: |
export BUILD_REASON=Schedule
git config --global --add safe.directory /__w/wezterm/wezterm
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -75,29 +66,19 @@ jobs:
key: "fedora35-None-2-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}-cargo"
- name: "Install System Deps"
shell: bash
run: |
export BUILD_REASON=Schedule
env PATH=$PATH ./get-deps
run: "env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Move RPM"
shell: bash
run: |
export BUILD_REASON=Schedule
mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora35.rpm
run: "mv ~/rpmbuild/RPMS/*/*.rpm wezterm-nightly-fedora35.rpm"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -108,6 +89,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "fedora:35"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Install config manager"
shell: bash
@ -73,6 +76,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -19,6 +19,9 @@ jobs:
build:
runs-on: "macos-11"
env:
MACOSX_DEPLOYMENT_TARGET: "10.9"
steps:
- name: "checkout repo"
uses: actions/checkout@v3
@ -35,34 +38,22 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
- name: "Install Rust (ARM)"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
rustup target add aarch64-apple-darwin
run: "rustup target add aarch64-apple-darwin"
- name: "Install System Deps"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
env PATH=$PATH ./get-deps
run: "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
run: "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
run: "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
run: "cargo test --target x86_64-apple-darwin --all --release"
- name: "Package"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:

View File

@ -21,6 +21,10 @@ jobs:
build:
runs-on: "macos-11"
env:
MACOSX_DEPLOYMENT_TARGET: "10.9"
BUILD_REASON: "Schedule"
steps:
- name: "checkout repo"
uses: actions/checkout@v3
@ -37,39 +41,19 @@ jobs:
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
run: "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
run: "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
run: "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
run: "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
run: "cargo test --target x86_64-apple-darwin --all --release"
- name: "Package"
env:
MACOS_CERT: ${{ secrets.MACOS_CERT }}
@ -78,11 +62,7 @@ jobs:
MACOS_APPLEID: ${{ secrets.MACOS_APPLEID }}
MACOS_APP_PW: ${{ secrets.MACOS_APP_PW }}
shell: bash
run: |
export BUILD_REASON=Schedule
export MACOSX_DEPLOYMENT_TARGET=10.9
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -93,6 +73,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v3

View File

@ -9,6 +9,10 @@ jobs:
build:
runs-on: "macos-11"
env:
MACOSX_DEPLOYMENT_TARGET: "10.9"
BUILD_REASON: "Schedule"
steps:
- name: "checkout repo"
uses: actions/checkout@v3
@ -25,29 +29,19 @@ jobs:
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
- name: "Install Rust (ARM)"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
rustup target add aarch64-apple-darwin
run: "rustup target add aarch64-apple-darwin"
- name: "Install System Deps"
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
env PATH=$PATH ./get-deps
run: "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
run: "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
run: "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
run: "cargo test --target x86_64-apple-darwin --all --release"
- name: "Package"
env:
MACOS_CERT: ${{ secrets.MACOS_CERT }}
@ -56,9 +50,7 @@ jobs:
MACOS_APPLEID: ${{ secrets.MACOS_APPLEID }}
MACOS_APP_PW: ${{ secrets.MACOS_APP_PW }}
shell: bash
run: |
export MACOSX_DEPLOYMENT_TARGET=10.9
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -72,9 +64,7 @@ jobs:
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
run: "cp wezterm.rb homebrew-wezterm/Casks/wezterm.rb"
- name: "Commit homebrew tap changes"
uses: stefanzweifel/git-auto-commit-action@v4
with:
@ -84,6 +74,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v3

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-18.04"
steps:
- name: "Update APT"
shell: bash

View File

@ -21,17 +21,16 @@ jobs:
build:
runs-on: "ubuntu-18.04"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Update APT"
shell: bash
run: |
export BUILD_REASON=Schedule
sudo -n apt update
run: "sudo -n apt update"
- name: "Install git"
shell: bash
run: |
export BUILD_REASON=Schedule
sudo -n apt-get install -y git
run: "sudo -n apt-get install -y git"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -55,34 +54,22 @@ jobs:
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
run: "sudo -n env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Source Tarball"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/source-archive.sh
run: "bash ci/source-archive.sh"
- name: "Build AppImage"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/appimage.sh
run: "bash ci/appimage.sh"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -98,6 +85,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v3

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-18.04"
env:
BUILD_REASON: "Schedule"
steps:
- name: "Update APT"
shell: bash
@ -83,6 +86,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v3

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "ubuntu:20.04"
steps:
- name: "set APT to non-interactive"
shell: bash

View File

@ -21,47 +21,34 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "ubuntu:20.04"
env:
BUILD_REASON: "Schedule"
steps:
- name: "set APT to non-interactive"
shell: bash
run: |
export BUILD_REASON=Schedule
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
- name: "Update APT"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
run: "apt update"
- name: "Install git"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y git
run: "apt-get install -y git"
- name: "Install curl"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y curl
run: "apt-get install -y curl"
- name: "Update APT"
shell: bash
run: |
export BUILD_REASON=Schedule
apt update
run: "apt update"
- name: "Ensure /run/sshd exists"
shell: bash
run: |
export BUILD_REASON=Schedule
mkdir -p /run/sshd
run: "mkdir -p /run/sshd"
- name: "Install openssh-server"
shell: bash
run: |
export BUILD_REASON=Schedule
apt-get install -y openssh-server
run: "apt-get install -y openssh-server"
- name: "Workaround git permissions issue"
shell: bash
run: |
export BUILD_REASON=Schedule
git config --global --add safe.directory /__w/wezterm/wezterm
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
- name: "checkout repo"
uses: actions/checkout@v3
with:
@ -85,24 +72,16 @@ jobs:
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
run: "env PATH=$PATH ./get-deps"
- name: "Build (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo build --all --release
run: "cargo build --all --release"
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -115,6 +94,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "ubuntu-latest"
container: "ubuntu:20.04"
env:
BUILD_REASON: "Schedule"
steps:
- name: "set APT to non-interactive"
shell: bash
@ -78,6 +81,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "Workaround git permissions issue"
shell: bash

View File

@ -19,6 +19,7 @@ jobs:
build:
runs-on: "windows-latest"
steps:
- name: "checkout repo"
uses: actions/checkout@v3

View File

@ -21,6 +21,9 @@ jobs:
build:
runs-on: "windows-latest"
env:
BUILD_REASON: "Schedule"
steps:
- name: "checkout repo"
uses: actions/checkout@v3
@ -52,14 +55,10 @@ jobs:
cargo build --all --release
- name: "Test (Release mode)"
shell: bash
run: |
export BUILD_REASON=Schedule
cargo test --all --release
run: "cargo test --all --release"
- name: "Package"
shell: bash
run: |
export BUILD_REASON=Schedule
bash ci/deploy.sh
run: "bash ci/deploy.sh"
- name: "Upload artifact"
uses: actions/upload-artifact@v3
with:
@ -72,6 +71,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v3

View File

@ -9,6 +9,9 @@ jobs:
build:
runs-on: "windows-latest"
env:
BUILD_REASON: "Schedule"
steps:
- name: "checkout repo"
uses: actions/checkout@v3
@ -55,6 +58,7 @@ jobs:
upload:
runs-on: ubuntu-latest
needs: build
steps:
- name: "checkout repo"
uses: actions/checkout@v3