2022-02-15 18:58:57 +03:00
|
|
|
name: alpine3.15_continuous
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "10 3 * * *"
|
|
|
|
push:
|
|
|
|
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_alpine3.15_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/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-02-15 18:58:57 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: "ubuntu-latest"
|
|
|
|
container: "alpine:3.15"
|
|
|
|
env:
|
|
|
|
BUILD_REASON: "Schedule"
|
2022-06-25 21:40:47 +03:00
|
|
|
RUSTFLAGS: "-C target-feature=-crt-static"
|
2022-02-15 18:58:57 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Upgrade system"
|
|
|
|
shell: sh
|
|
|
|
run: "apk upgrade --update-cache"
|
|
|
|
- name: "Install CI dependencies"
|
|
|
|
shell: sh
|
2022-04-19 16:19:59 +03:00
|
|
|
run: "apk add nodejs zstd wget bash coreutils tar findutils"
|
2022-02-15 18:58:57 +03:00
|
|
|
- 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"
|
2023-03-24 20:16:09 +03:00
|
|
|
uses: dtolnay/rust-toolchain@stable
|
2022-02-15 18:58:57 +03:00
|
|
|
- name: "Cache cargo"
|
2023-03-25 03:54:36 +03:00
|
|
|
uses: Swatinem/rust-cache@v2
|
2022-02-15 18:58:57 +03:00
|
|
|
with:
|
2023-03-25 03:54:36 +03:00
|
|
|
key: "alpine3.15-None-2-${{ runner.os }}-cargo"
|
2022-02-15 18:58:57 +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-02-15 18:58:57 +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"
|
2022-04-19 08:58:27 +03:00
|
|
|
- name: "Move APKs"
|
|
|
|
shell: bash
|
2022-04-20 07:18:36 +03:00
|
|
|
run: "mv ~/packages/wezterm/x86_64/*.apk wezterm-nightly-alpine3.15.apk"
|
2022-02-15 18:58:57 +03:00
|
|
|
- name: "Upload artifact"
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: "alpine3.15"
|
2022-04-19 08:18:22 +03:00
|
|
|
path: "wezterm-*.apk"
|
2022-02-15 18:58:57 +03:00
|
|
|
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"
|
2022-07-25 18:39:24 +03:00
|
|
|
- name: "Checksum"
|
|
|
|
shell: bash
|
|
|
|
run: "for f in wezterm-*.apk ; do sha256sum $f > $f.sha256 ; done"
|
2022-02-15 18:58:57 +03:00
|
|
|
- name: "Upload to Nightly Release"
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
shell: bash
|
2022-07-25 18:39:24 +03:00
|
|
|
run: "bash ci/retry.sh gh release upload --clobber nightly wezterm-*.apk *.sha256"
|