From ceb221a29058a396975b4c8b67dad8e3f93c444e Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Thu, 26 Sep 2024 15:03:16 -0400 Subject: [PATCH 1/6] adding build workflow --- .github/workflows/build_windows_worker.yml | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/build_windows_worker.yml diff --git a/.github/workflows/build_windows_worker.yml b/.github/workflows/build_windows_worker.yml new file mode 100644 index 0000000000000..b24f87f669797 --- /dev/null +++ b/.github/workflows/build_windows_worker.yml @@ -0,0 +1,48 @@ +name: Backend only integration tests + +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_test: + 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 && rustup target add x86_64-pc-windows-gnu && + DATABASE_URL=postgres://postgres:changeme@postgres:5432/windmill + DISABLE_EMBEDDING=true RUST_LOG=info cargo build --target x86_64-pc-windows-gnu --release + --all -- --nocapture From b6f8d462ade892bc361939f3e2fa0f993f4b6854 Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Thu, 26 Sep 2024 15:08:17 -0400 Subject: [PATCH 2/6] editing workflow --- .github/workflows/build_windows_worker.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_windows_worker.yml b/.github/workflows/build_windows_worker.yml index b24f87f669797..90bfa1d72db56 100644 --- a/.github/workflows/build_windows_worker.yml +++ b/.github/workflows/build_windows_worker.yml @@ -1,4 +1,4 @@ -name: Backend only integration tests +name: Build Windows Worker on: push: @@ -44,5 +44,5 @@ jobs: mkdir frontend/build && cd backend && touch windmill-api/openapi-deref.yaml && rustup target add x86_64-pc-windows-gnu && DATABASE_URL=postgres://postgres:changeme@postgres:5432/windmill - DISABLE_EMBEDDING=true RUST_LOG=info cargo build --target x86_64-pc-windows-gnu --release - --all -- --nocapture + DISABLE_EMBEDDING=true RUST_LOG=info cargo build --target x86_64-pc-windows-gnu --release + From 3b02fbb38e48ca9137bcf6436ac475d9c5b3c03f Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Thu, 26 Sep 2024 15:12:59 -0400 Subject: [PATCH 3/6] editing workflow --- .github/workflows/build_windows_worker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_windows_worker.yml b/.github/workflows/build_windows_worker.yml index 90bfa1d72db56..da7cec7e14c92 100644 --- a/.github/workflows/build_windows_worker.yml +++ b/.github/workflows/build_windows_worker.yml @@ -42,7 +42,7 @@ jobs: timeout-minutes: 15 run: mkdir frontend/build && cd backend && touch - windmill-api/openapi-deref.yaml && rustup target add x86_64-pc-windows-gnu && + windmill-api/openapi-deref.yaml && apt-get install gcc-mingw-w64 && rustup target add x86_64-pc-windows-gnu && DATABASE_URL=postgres://postgres:changeme@postgres:5432/windmill DISABLE_EMBEDDING=true RUST_LOG=info cargo build --target x86_64-pc-windows-gnu --release - + From b3dad9e93e25be36d5c9de83930beb3e4d2acec0 Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Thu, 26 Sep 2024 15:17:23 -0400 Subject: [PATCH 4/6] editing workflow --- .github/workflows/build_windows_worker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_windows_worker.yml b/.github/workflows/build_windows_worker.yml index da7cec7e14c92..48e296280c19e 100644 --- a/.github/workflows/build_windows_worker.yml +++ b/.github/workflows/build_windows_worker.yml @@ -14,7 +14,7 @@ on: - ".github/workflows/backend-test.yml" jobs: - cargo_test: + cargo_build_windos: runs-on: ubicloud-standard-8 container: image: ghcr.io/windmill-labs/backend-tests @@ -42,7 +42,7 @@ jobs: timeout-minutes: 15 run: mkdir frontend/build && cd backend && touch - windmill-api/openapi-deref.yaml && apt-get install gcc-mingw-w64 && rustup target add x86_64-pc-windows-gnu && + windmill-api/openapi-deref.yaml && apt-get install gcc-mingw-w64 --yes && rustup target add x86_64-pc-windows-gnu && DATABASE_URL=postgres://postgres:changeme@postgres:5432/windmill DISABLE_EMBEDDING=true RUST_LOG=info cargo build --target x86_64-pc-windows-gnu --release From 9b84cb990f3026800b462e77135c301b954a9587 Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Thu, 26 Sep 2024 15:23:42 -0400 Subject: [PATCH 5/6] editing workflow --- .github/workflows/build_windows_worker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_windows_worker.yml b/.github/workflows/build_windows_worker.yml index 48e296280c19e..64efd2d01597c 100644 --- a/.github/workflows/build_windows_worker.yml +++ b/.github/workflows/build_windows_worker.yml @@ -14,7 +14,7 @@ on: - ".github/workflows/backend-test.yml" jobs: - cargo_build_windos: + cargo_build_windows: runs-on: ubicloud-standard-8 container: image: ghcr.io/windmill-labs/backend-tests @@ -42,7 +42,7 @@ jobs: timeout-minutes: 15 run: mkdir frontend/build && cd backend && touch - windmill-api/openapi-deref.yaml && apt-get install gcc-mingw-w64 --yes && rustup target add x86_64-pc-windows-gnu && + 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 DISABLE_EMBEDDING=true RUST_LOG=info cargo build --target x86_64-pc-windows-gnu --release From 11e8ca70fb066082d29bd2c8e3eb0bb9e8060429 Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Thu, 26 Sep 2024 15:55:10 -0400 Subject: [PATCH 6/6] editing workflow --- .github/workflows/build_windows_worker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_windows_worker.yml b/.github/workflows/build_windows_worker.yml index 64efd2d01597c..265c2b33ff7e4 100644 --- a/.github/workflows/build_windows_worker.yml +++ b/.github/workflows/build_windows_worker.yml @@ -43,6 +43,6 @@ jobs: 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 + 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