1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-26 23:04:49 +03:00
wezterm/.github/workflows/package_win.yml
Wez Furlong 61b27c8089 teach build.rs to init submodules if needed
Forgetting to update the submodules is a commonly reported build
issue with an obscure error message:

```
CMake Error: The source directory "/home/USER/wezterm/target/debug/build/freetype-430fe24cb64c561c/out/zlib-src/zlib" does not appear to contain CMakeLists.txt.
```

this teaches the build.rs machinery to run the submodule update
if it looks like it is needed.
2019-10-29 08:42:38 -07:00

43 lines
898 B
YAML

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 }}
- 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_