Skip to content

.github/workflows/build-windows.yml #17471

.github/workflows/build-windows.yml

.github/workflows/build-windows.yml #17471

Workflow file for this run

on:
workflow_dispatch:
inputs:
commit:
description: "Commit on the given branch to build"
required: true
jobs:
build:
# Do not change `name`, prisma-engines Buildkite build job depends on this name ending with the commit
name: "Windows engines build on branch ${{ github.event.ref }} for commit ${{ github.event.inputs.commit }}"
env:
SQLITE_MAX_VARIABLE_NUMBER: 250000
SQLITE_MAX_EXPR_DEPTH: 10000
RUSTFLAGS: "-C target-feature=+crt-static"
runs-on: windows-latest
steps:
- name: Output link to real commit
run: echo ${{ github.repository }}/commit/${{ github.event.inputs.commit }}
- name: Checkout ${{ github.event.inputs.commit }}
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.commit }}
- uses: dtolnay/rust-toolchain@stable
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo build --release
- uses: actions/upload-artifact@v3
with:
name: binaries
path: |
${{ github.workspace }}/target/release/*.exe
${{ github.workspace }}/target/release/*.dll