-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'alp/build_windows' of https://github.com/windmill-labs/…
…windmill into alp/build_windows
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Build Windows Worker | ||
|
||
on: | ||
push: | ||
branches: | ||
- "alp/build_windows" | ||
paths: | ||
- "backend/**" | ||
- ".github/workflows/build_windows_worker.yml" | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- "backend/**" | ||
- ".github/workflows/backend-test.yml" | ||
|
||
jobs: | ||
cargo_build_windows: | ||
runs-on: ubicloud-standard-8 | ||
container: | ||
image: ghcr.io/windmill-labs/backend-tests | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: windmill | ||
POSTGRES_PASSWORD: changeme | ||
|
||
options: >- | ||
--health-cmd pg_isready --health-interval 10s --health-timeout 5s | ||
--health-retries 5 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: 1.80.0 | ||
# - uses: Swatinem/rust-cache@v2 | ||
# with: | ||
# workspaces: | | ||
# backend | ||
# backend -> target | ||
- name: cargo build windows | ||
timeout-minutes: 15 | ||
run: | ||
mkdir frontend/build && cd backend && touch | ||
windmill-api/openapi-deref.yaml && apt-get install gcc-mingw-w64 python-is-python3 --yes && rustup target add x86_64-pc-windows-gnu && | ||
DATABASE_URL=postgres://postgres:changeme@postgres:5432/windmill OPENSSL_DIR="/usr/lib/ssl" | ||
DISABLE_EMBEDDING=true RUST_LOG=info cargo build --target x86_64-pc-windows-gnu --release | ||
|