2020-05-03 21:21:58 +03:00
|
|
|
name: debian9.12
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2021-09-21 16:24:52 +03:00
|
|
|
- main
|
2021-01-30 23:34:54 +03:00
|
|
|
paths-ignore:
|
2021-09-21 16:24:52 +03:00
|
|
|
- ".cirrus.yml"
|
|
|
|
- "docs/*"
|
|
|
|
- "ci/build-docs.sh"
|
|
|
|
- "ci/generate-docs.py"
|
|
|
|
- "ci/subst-release-info.py"
|
|
|
|
- ".github/workflows/pages.yml"
|
2021-12-12 09:33:46 +03:00
|
|
|
- ".github/workflows/verify-pages.yml"
|
2021-09-21 16:24:52 +03:00
|
|
|
- ".github/ISSUE_TEMPLATE/*"
|
|
|
|
- "**/*.md"
|
2020-05-03 21:21:58 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container: "debian:9.12"
|
|
|
|
steps:
|
2021-09-21 16:24:52 +03:00
|
|
|
- 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"
|
2021-11-29 05:10:08 +03:00
|
|
|
uses: actions/cache@v2.1.7
|
2021-09-21 16:24:52 +03:00
|
|
|
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"
|
2021-12-06 20:40:51 +03:00
|
|
|
- name: "Update APT"
|
|
|
|
shell: bash
|
|
|
|
run: "apt update"
|
2021-09-27 08:14:06 +03:00
|
|
|
- name: "Ensure /run/sshd exists"
|
|
|
|
shell: bash
|
|
|
|
run: "mkdir -p /run/sshd"
|
2021-09-27 05:30:50 +03:00
|
|
|
- name: "Install openssh-server"
|
|
|
|
shell: bash
|
|
|
|
run: "apt-get install -y openssh-server"
|
2021-09-21 16:24:52 +03:00
|
|
|
- name: "checkout repo"
|
2022-03-09 17:32:40 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-09-21 16:24:52 +03:00
|
|
|
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"
|
2021-11-29 05:10:08 +03:00
|
|
|
uses: actions/cache@v2.1.7
|
2021-09-21 16:24:52 +03:00
|
|
|
with:
|
|
|
|
path: |
|
2020-10-10 17:29:17 +03:00
|
|
|
~/.cargo/registry
|
|
|
|
~/.cargo/git
|
|
|
|
target
|
2021-09-21 16:24:52 +03:00
|
|
|
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 artifact"
|
2021-12-07 05:37:33 +03:00
|
|
|
uses: actions/upload-artifact@v2
|
2021-09-21 16:24:52 +03:00
|
|
|
with:
|
|
|
|
name: "debian9.12"
|
2021-12-09 05:57:25 +03:00
|
|
|
path: |
|
|
|
|
wezterm-*.deb
|
|
|
|
wezterm-*.xz
|