2020-02-12 21:55:44 +03:00
|
|
|
|
|
|
|
name: windows_continuous
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "10 * * * *"
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
runs-on: "vs2017-win2016"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "checkout repo"
|
2020-05-03 21:21:58 +03:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: "recursive"
|
|
|
|
- name: "Fetch tags"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Fetch tag/branch history"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
git fetch --prune --unshallow
|
|
|
|
|
|
|
|
|
2020-02-12 21:55:44 +03:00
|
|
|
- name: "Install Rust"
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: "minimal"
|
|
|
|
toolchain: "stable"
|
|
|
|
override: true
|
|
|
|
components: "rustfmt"
|
|
|
|
target: "x86_64-pc-windows-msvc"
|
|
|
|
- name: "Cache cargo registry"
|
2020-10-10 07:02:00 +03:00
|
|
|
uses: actions/cache@v2
|
2020-02-12 21:55:44 +03:00
|
|
|
with:
|
|
|
|
path: "~/.cargo/registry"
|
2020-10-10 09:53:58 +03:00
|
|
|
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-registry"
|
2020-02-12 21:55:44 +03:00
|
|
|
- name: "Cache cargo index"
|
2020-10-10 07:02:00 +03:00
|
|
|
uses: actions/cache@v2
|
2020-02-12 21:55:44 +03:00
|
|
|
with:
|
|
|
|
path: "~/.cargo/git"
|
2020-10-10 09:53:58 +03:00
|
|
|
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-index"
|
2020-02-12 21:55:44 +03:00
|
|
|
- name: "Cache cargo build"
|
2020-10-10 07:02:00 +03:00
|
|
|
uses: actions/cache@v2
|
2020-02-12 21:55:44 +03:00
|
|
|
with:
|
|
|
|
path: "target"
|
2020-10-10 09:53:58 +03:00
|
|
|
key: "windows-x86_64-pc-windows-msvc-1-${{ hashFiles('Cargo.lock') }}-cargo-build-target"
|
2020-02-12 21:55:44 +03:00
|
|
|
- name: "Build (Release mode)"
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
|
|
|
|
PATH C:\Strawberry\perl\bin;%PATH%
|
|
|
|
cargo build --all --release
|
|
|
|
|
|
|
|
- name: "Test (Release mode)"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
cargo test --all --release
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Package"
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
export BUILD_REASON=Schedule
|
|
|
|
bash ci/deploy.sh
|
|
|
|
|
|
|
|
|
|
|
|
- name: "Upload to Nightly Release"
|
2020-02-15 02:53:32 +03:00
|
|
|
uses: wez/upload-release-assets@releases/v1
|
2020-02-12 21:55:44 +03:00
|
|
|
with:
|
2020-05-25 10:12:36 +03:00
|
|
|
files: "WezTerm-*.zip;WezTerm-*.exe"
|
2020-02-13 00:32:05 +03:00
|
|
|
release-tag: "nightly"
|
2020-02-12 21:55:44 +03:00
|
|
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|