Skip to content

Build Engines for Windows #1398

Build Engines for Windows

Build Engines for Windows #1398

name: Build Engines for Windows
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@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: binaries
path: |
${{ github.workspace }}/target/release/*.exe
${{ github.workspace }}/target/release/*.dll