2020-05-04 02:16:52 +03:00
|
|
|
name: ubuntu20.04_continuous
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2021-01-30 23:34:54 +03:00
|
|
|
- cron: "10 3 * * *"
|
|
|
|
push:
|
|
|
|
branches:
|
2021-09-21 16:24:52 +03:00
|
|
|
- main
|
2023-03-16 07:31:46 +03:00
|
|
|
paths:
|
|
|
|
- "**/*.rs"
|
|
|
|
- "**/Cargo.lock"
|
|
|
|
- "**/Cargo.toml"
|
2023-03-16 07:34:33 +03:00
|
|
|
- ".github/workflows/gen_ubuntu20.04_continuous.yml"
|
2023-03-16 07:31:46 +03:00
|
|
|
- "assets/fonts/**/*"
|
|
|
|
- "assets/icon/*"
|
|
|
|
- "assets/open-wezterm-here"
|
|
|
|
- "assets/shell-completion/**/*"
|
|
|
|
- "assets/shell-integration/**/*"
|
|
|
|
- "assets/wezterm-nautilus.py"
|
|
|
|
- "assets/wezterm.appdata.xml"
|
|
|
|
- "assets/wezterm.desktop"
|
|
|
|
- "ci/appimage.sh"
|
|
|
|
- "ci/appstreamcli"
|
|
|
|
- "ci/deploy.sh"
|
|
|
|
- "ci/source-archive.sh"
|
2023-03-24 16:49:37 +03:00
|
|
|
- "ci/tag-name.sh"
|
2023-03-16 07:31:46 +03:00
|
|
|
- "get-deps"
|
|
|
|
- "termwiz/data/wezterm.terminfo"
|
2020-05-04 02:16:52 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2021-12-06 20:37:54 +03:00
|
|
|
runs-on: "ubuntu-latest"
|
2023-02-17 22:13:02 +03:00
|
|
|
container:
|
|
|
|
image: "ubuntu:20.04"
|
|
|
|
options: --privileged
|
2022-02-15 18:58:57 +03:00
|
|
|
env:
|
|
|
|
BUILD_REASON: "Schedule"
|
2024-01-29 00:29:42 +03:00
|
|
|
CARGO_INCREMENTAL: "0"
|
|
|
|
SCCACHE_GHA_ENABLED: "true"
|
|
|
|
RUSTC_WRAPPER: "sccache"
|
2022-02-15 18:58:57 +03:00
|
|
|
|
2020-05-04 02:16:52 +03:00
|
|
|
steps:
|
2021-12-06 20:37:54 +03:00
|
|
|
- name: "set APT to non-interactive"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections"
|
2021-09-21 16:24:52 +03:00
|
|
|
- name: "Update APT"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "apt update"
|
2021-09-21 16:24:52 +03:00
|
|
|
- name: "Install git"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "apt-get install -y git"
|
2021-12-06 20:37:54 +03:00
|
|
|
- name: "Install curl"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "apt-get install -y curl"
|
2021-12-06 20:40:51 +03:00
|
|
|
- name: "Update APT"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "apt update"
|
2021-12-06 20:37:54 +03:00
|
|
|
- name: "Ensure /run/sshd exists"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "mkdir -p /run/sshd"
|
2021-12-06 20:37:54 +03:00
|
|
|
- name: "Install openssh-server"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "apt-get install -y openssh-server"
|
2022-04-13 06:11:18 +03:00
|
|
|
- name: "Workaround git permissions issue"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
|
2021-09-21 16:24:52 +03:00
|
|
|
- name: "checkout repo"
|
2023-09-11 06:50:45 +03:00
|
|
|
uses: actions/checkout@v4
|
2021-09-21 16:24:52 +03:00
|
|
|
with:
|
|
|
|
submodules: "recursive"
|
|
|
|
- name: "Install Rust"
|
2023-03-24 20:16:09 +03:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2024-01-29 00:29:42 +03:00
|
|
|
- name: "Compile with sccache"
|
|
|
|
uses: mozilla-actions/sccache-action@v0.0.3
|
|
|
|
- name: "Cache Rust Dependencies"
|
|
|
|
uses: actions/cache@v3
|
|
|
|
id: cache-cargo-vendor
|
2021-09-21 16:24:52 +03:00
|
|
|
with:
|
2024-01-29 00:29:42 +03:00
|
|
|
path: |
|
|
|
|
vendor
|
|
|
|
.cargo/config
|
|
|
|
key: "cargo-deps-${{ hashFiles('**/Cargo.lock') }}"
|
|
|
|
- name: "Vendor dependecies"
|
|
|
|
if: steps.cache-cargo-vendor.outputs.cache-hit != 'true'
|
|
|
|
shell: bash
|
|
|
|
run: "cargo vendor --locked --versioned-dirs >> .cargo/config"
|
2021-09-21 16:24:52 +03:00
|
|
|
- name: "Install System Deps"
|
|
|
|
shell: bash
|
2023-03-22 06:01:57 +03:00
|
|
|
run: "env CI=yes PATH=$PATH ./get-deps"
|
2021-09-21 16:24:52 +03:00
|
|
|
- name: "Build (Release mode)"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "cargo build --all --release"
|
2023-03-25 07:11:22 +03:00
|
|
|
- name: "Install cargo-nextest from Cargo"
|
|
|
|
uses: baptiste0928/cargo-install@v2
|
|
|
|
with:
|
|
|
|
crate: "cargo-nextest"
|
|
|
|
cache-key: "ubuntu20.04"
|
2023-07-13 18:14:02 +03:00
|
|
|
- name: "Test (Release mode)"
|
2021-09-21 16:24:52 +03:00
|
|
|
shell: bash
|
2023-07-13 18:14:02 +03:00
|
|
|
run: "cargo nextest run --all --release --no-fail-fast"
|
2021-09-21 16:24:52 +03:00
|
|
|
- name: "Package"
|
|
|
|
shell: bash
|
2022-02-15 18:58:57 +03:00
|
|
|
run: "bash ci/deploy.sh"
|
2023-02-17 21:33:35 +03:00
|
|
|
- name: "Install libfuse2"
|
|
|
|
shell: bash
|
|
|
|
run: "apt-get install -y libfuse2"
|
2023-02-12 20:31:06 +03:00
|
|
|
- name: "Source Tarball"
|
|
|
|
shell: bash
|
|
|
|
run: "bash ci/source-archive.sh"
|
|
|
|
- name: "Build AppImage"
|
|
|
|
shell: bash
|
|
|
|
run: "bash ci/appimage.sh"
|
2021-12-07 05:37:33 +03:00
|
|
|
- name: "Upload artifact"
|
2022-04-11 04:36:34 +03:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-12-07 05:37:33 +03:00
|
|
|
with:
|
|
|
|
name: "ubuntu20.04"
|
|
|
|
path: |
|
|
|
|
wezterm-*.deb
|
|
|
|
wezterm-*.xz
|
2023-02-12 20:31:06 +03:00
|
|
|
*src.tar.gz
|
|
|
|
*.AppImage
|
|
|
|
*.zsync
|
2021-12-08 20:14:08 +03:00
|
|
|
retention-days: 5
|
|
|
|
|
|
|
|
upload:
|
|
|
|
runs-on: ubuntu-latest
|
2021-12-08 20:16:58 +03:00
|
|
|
needs: build
|
2022-02-15 18:58:57 +03:00
|
|
|
|
2021-12-08 20:14:08 +03:00
|
|
|
steps:
|
2022-04-13 06:11:18 +03:00
|
|
|
- name: "Workaround git permissions issue"
|
|
|
|
shell: bash
|
|
|
|
run: "git config --global --add safe.directory /__w/wezterm/wezterm"
|
2021-12-08 21:19:00 +03:00
|
|
|
- name: "checkout repo"
|
2023-09-11 06:50:45 +03:00
|
|
|
uses: actions/checkout@v4
|
2021-12-08 20:14:08 +03:00
|
|
|
- name: "Download artifact"
|
2022-04-11 04:36:34 +03:00
|
|
|
uses: actions/download-artifact@v3
|
2021-12-08 20:14:08 +03:00
|
|
|
with:
|
|
|
|
name: "ubuntu20.04"
|
2022-07-25 18:39:24 +03:00
|
|
|
- name: "Checksum"
|
|
|
|
shell: bash
|
2023-02-12 20:31:06 +03:00
|
|
|
run: "for f in wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync ; do sha256sum $f > $f.sha256 ; done"
|
2021-09-21 16:24:52 +03:00
|
|
|
- name: "Upload to Nightly Release"
|
2021-12-06 19:11:26 +03:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
shell: bash
|
2023-02-12 20:31:06 +03:00
|
|
|
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.deb wezterm-*.xz *src.tar.gz *.AppImage *.zsync *.sha256"
|