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]
|
2020-01-20 02:38:24 +03:00
|
|
|
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
|
2020-01-20 02:38:24 +03:00
|
|
|
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
|
2020-02-02 20:47:58 +03:00
|
|
|
path
|
2020-02-02 21:48:57 +03:00
|
|
|
where perl
|
2019-12-29 21:43:35 +03:00
|
|
|
- name: Cache cargo registry
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.cargo/registry
|
2019-12-29 20:07:29 +03:00
|
|
|
key: ${{ matrix.os }}-${{ matrix.rust_toolchain }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
|
2019-12-29 21:43:35 +03:00
|
|
|
- name: Cache cargo index
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.cargo/git
|
2019-12-29 20:07:29 +03:00
|
|
|
key: ${{ matrix.os }}-${{ matrix.rust_toolchain }}-cargo-index-${{ hashFiles('Cargo.lock') }}
|
2019-12-29 21:43:35 +03:00
|
|
|
- name: Cache cargo build
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: target
|
2019-12-29 20:07:29 +03:00
|
|
|
key: ${{ matrix.os }}-${{ matrix.rust_toolchain }}-cargo-build-target-${{ hashFiles('Cargo.lock') }}
|
2019-10-25 09:36:46 +03:00
|
|
|
- name: Build
|
|
|
|
shell: cmd
|
2020-02-02 21:48:57 +03:00
|
|
|
run: |
|
2020-02-02 22:07:06 +03:00
|
|
|
PATH C:\Strawberry\perl\bin;%PATH%
|
2020-02-02 21:48:57 +03:00
|
|
|
cargo build --all --release
|
2019-10-25 09:36:46 +03:00
|
|
|
- name: Test
|
|
|
|
shell: cmd
|
2020-01-24 20:20:44 +03:00
|
|
|
run: cargo test --all --release
|
2019-12-29 21:43:35 +03:00
|
|
|
- name: Package
|
|
|
|
shell: cmd
|
2020-01-24 20:20:44 +03:00
|
|
|
run: bash ci/deploy.sh
|
2019-12-29 21:43:35 +03:00
|
|
|
- name: Move Windows Package
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
mkdir pkg_
|
|
|
|
mv *.zip pkg_
|
|
|
|
- uses: actions/upload-artifact@master
|
|
|
|
with:
|
|
|
|
name: windows
|
|
|
|
path: pkg_
|