1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-19 18:57:59 +03:00
wezterm/.github/workflows/windows.yml

70 lines
1.7 KiB
YAML
Raw Normal View History

2019-10-25 09:36:46 +03:00
name: windows
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [vs2017-win2016]
rust_toolchain: [x86_64-pc-windows-msvc]
2019-10-25 09:36:46 +03:00
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: ${{ matrix.rust_toolchain }}
2019-10-25 09:36:46 +03:00
- name: Show versions
shell: cmd
run: |
rustc -V
cargo -V
path
where perl
- 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') }}
2019-10-25 09:36:46 +03:00
- name: Build
shell: cmd
run: |
2020-02-02 22:07:06 +03:00
PATH C:\Strawberry\perl\bin;%PATH%
cargo build --all --release
2019-10-25 09:36:46 +03:00
- name: Test
shell: cmd
run: cargo test --all --release
- name: Package
shell: cmd
run: bash ci/deploy.sh
- name: Move Windows Package
shell: bash
run: |
mkdir pkg_
mv *.zip pkg_
- uses: actions/upload-artifact@master
with:
name: windows
path: pkg_