2019-10-25 16:18:34 +03:00
|
|
|
name: package_win
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
schedule:
|
|
|
|
- cron: "10 3 * * *"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os: [vs2017-win2016]
|
|
|
|
rust_toolchain: [stable]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Install Rust
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
curl -sSf -o rustup-init.exe https://win.rustup.rs
|
|
|
|
rustup-init.exe -yv --default-toolchain ${{ matrix.rust_toolchain }}
|
2019-11-22 05:58:59 +03:00
|
|
|
rustup update ${{ matrix.rust_toolchain }}
|
2019-10-25 16:18:34 +03:00
|
|
|
- name: Package
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
set path "%USERPROFILE%\.cargo\bin;%PATH"
|
|
|
|
cargo build --release --all
|
|
|
|
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_
|