* take a stab at fixing the windows CI to generate 64-bit * use actions-rs/toolchain more broadly * fixup target dir for deploy script * cut over to the rust action for installing rust
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
name: nightly_win
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "10 * * * *"
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [vs2017-win2016]
|
|
rust_toolchain: [x86_64-pc-windows-msvc]
|
|
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 }}
|
|
- 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') }}
|
|
- name: Package
|
|
shell: cmd
|
|
run: |
|
|
cargo build --all --release --target ${{ matrix.rust_toolchain }}
|
|
set BUILD_REASON=Schedule
|
|
bash ci/deploy.sh target/x86_64-pc-windows-msvc
|
|
- name: Upload Assets
|
|
uses: AButler/upload-release-assets@v2.0
|
|
with:
|
|
release-tag: nightly
|
|
# allows comma-separated list of case sensitive globs
|
|
files: "wezterm-*.deb;WezTerm-*.zip;wezterm-*.xz;wezterm-*.rpm;wezterm-*.tar.gz"
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|