2022-04-25 23:27:56 +03:00
|
|
|
name: opensuse_leap
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-03-16 07:31:46 +03:00
|
|
|
paths:
|
|
|
|
- "**/*.rs"
|
|
|
|
- "**/Cargo.lock"
|
|
|
|
- "**/Cargo.toml"
|
2023-03-16 10:05:00 +03:00
|
|
|
- ".github/workflows/gen_opensuse_leap.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/deploy.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"
|
2022-04-25 23:27:56 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container: "registry.opensuse.org/opensuse/leap:15.3"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Seed GITHUB_PATH to work around possible @action/core bug"
|
|
|
|
shell: bash
|
|
|
|
run: 'echo "$PATH:/bin:/usr/bin" >> $GITHUB_PATH'
|
2022-10-22 07:47:09 +03:00
|
|
|
- name: "Install util-linux"
|
2022-04-25 23:27:56 +03:00
|
|
|
shell: bash
|
2022-10-22 07:47:09 +03:00
|
|
|
run: "zypper install -y util-linux"
|
2022-04-25 23:27:56 +03:00
|
|
|
- name: "Install git"
|
|
|
|
shell: bash
|
|
|
|
run: "zypper install -y git"
|
|
|
|
- name: "Install curl"
|
|
|
|
shell: bash
|
|
|
|
run: "zypper install -y curl"
|
|
|
|
- name: "Ensure /run/sshd exists"
|
|
|
|
shell: bash
|
|
|
|
run: "mkdir -p /run/sshd"
|
|
|
|
- name: "Install openssh-server"
|
|
|
|
shell: bash
|
|
|
|
run: "zypper install -y openssh-server"
|
|
|
|
- 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"
|
2023-03-24 20:16:09 +03:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2022-04-25 23:27:56 +03:00
|
|
|
- name: "Cache cargo"
|
2023-03-25 03:54:36 +03:00
|
|
|
uses: Swatinem/rust-cache@v2
|
2022-04-25 23:27:56 +03:00
|
|
|
with:
|
2023-03-25 03:54:36 +03:00
|
|
|
key: "opensuse_leap-None-2-${{ runner.os }}-cargo"
|
2022-04-25 23:27:56 +03:00
|
|
|
- name: "Install System Deps"
|
|
|
|
shell: bash
|
2023-03-22 06:01:57 +03:00
|
|
|
run: "env CI=yes PATH=$PATH ./get-deps"
|
2022-04-25 23:27:56 +03:00
|
|
|
- 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 /usr/src/packages/RPMS/*/*.rpm ."
|
|
|
|
- name: "Upload artifact"
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: "opensuse_leap"
|
|
|
|
path: "wezterm-*.rpm"
|