2019-12-30 04:45:00 +03:00
|
|
|
name: tag_posix
|
|
|
|
|
|
|
|
on:
|
2019-12-30 06:00:46 +03:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "20*"
|
2019-12-30 04:45:00 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-16.04, macos-latest]
|
|
|
|
rust_toolchain: [stable]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install System Deps
|
|
|
|
run: sudo ./get-deps
|
|
|
|
- name: Install Rust
|
2020-01-20 02:38:24 +03:00
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: ${{ matrix.rust_toolchain }}
|
|
|
|
override: true
|
2020-01-27 03:14:00 +03:00
|
|
|
- name: Set macOS deployment target
|
|
|
|
run: |
|
|
|
|
echo "::set-env name=MACOSX_DEPLOYMENT_TARGET=10.9"
|
2019-12-30 04:45:00 +03:00
|
|
|
- name: Cache cargo registry
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.cargo/registry
|
|
|
|
key: ${{ matrix.os }}-${{ matrix.rust_toolchain }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
|
|
|
|
- name: Cache cargo index
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.cargo/git
|
|
|
|
key: ${{ matrix.os }}-${{ matrix.rust_toolchain }}-cargo-index-${{ hashFiles('Cargo.lock') }}
|
|
|
|
- name: Cache cargo build
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: target
|
|
|
|
key: ${{ matrix.os }}-${{ matrix.rust_toolchain }}-cargo-build-target-${{ hashFiles('Cargo.lock') }}
|
|
|
|
- name: Package
|
|
|
|
run: |
|
|
|
|
cargo build --release --all
|
|
|
|
bash ci/deploy.sh
|
|
|
|
- name: Upload Assets
|
2019-12-30 06:00:46 +03:00
|
|
|
uses: softprops/action-gh-release@v1
|
2019-12-30 04:45:00 +03:00
|
|
|
with:
|
2019-12-30 06:00:46 +03:00
|
|
|
files: |
|
|
|
|
wezterm-*.rpm
|
|
|
|
wezterm-*.deb
|
|
|
|
WezTerm-*.zip
|
2020-01-21 10:11:38 +03:00
|
|
|
WezTerm-*.AppImage
|
2019-12-30 06:00:46 +03:00
|
|
|
wezterm-*.xz
|
2019-12-30 06:34:20 +03:00
|
|
|
wezterm-*.tar.gz
|
2019-12-30 06:00:46 +03:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|