1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00

Add windows GH action (#51)

This commit is contained in:
Wez Furlong 2019-10-24 23:36:46 -07:00 committed by GitHub
parent 89514eb33b
commit f31cf8e9b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 71 additions and 2 deletions

View File

@ -9,7 +9,7 @@ on:
- master
schedule:
- cron: "10 * * * *"
jobs:
build:
strategy:
@ -71,4 +71,3 @@ jobs:
with:
name: linux
path: linux_

70
.github/workflows/windows.yml vendored Normal file
View File

@ -0,0 +1,70 @@
name: windows
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "10 * * * *"
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [vs2017-win2016]
rust_toolchain: [stable, nightly]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- name: Update submodules
run: git submodule update --init
- 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 }}
- name: Show versions
shell: cmd
run: |
set path "%USERPROFILE%\.cargo\bin;%PATH"
rustc -V
cargo -V
- name: Check formatting
if: matrix.rust_toolchain == 'stable'
shell: cmd
run: |
set path "%USERPROFILE%\.cargo\bin;%PATH"
rustup component add rustfmt
cargo fmt --all -- --check
- name: Build
shell: cmd
run: |
set path "%USERPROFILE%\.cargo\bin;%PATH"
cargo build --all
- name: Test
shell: cmd
run: |
set path "%USERPROFILE%\.cargo\bin;%PATH"
cargo test --all
- name: Package
shell: cmd
if: matrix.rust_toolchain == 'stable'
run: |
set path "%USERPROFILE%\.cargo\bin;%PATH"
cargo build --release --all
bash ci/deploy.sh
- name: Move Windows Package
shell: bash
if: matrix.rust_toolchain == 'stable'
run: |
mkdir pkg_
mv *.zip pkg_
- uses: actions/upload-artifact@master
if: matrix.rust_toolchain == 'stable'
with:
name: windows
path: pkg_