From 6c7f6a75eaa253855c11bcea9515a5f166ecbd29 Mon Sep 17 00:00:00 2001 From: Benjamin Dornel Date: Sun, 8 Sep 2024 21:39:34 +0800 Subject: [PATCH] test build on windows --- .github/workflows/build_app_windows.yml | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/build_app_windows.yml diff --git a/.github/workflows/build_app_windows.yml b/.github/workflows/build_app_windows.yml new file mode 100644 index 0000000..3569d67 --- /dev/null +++ b/.github/workflows/build_app_windows.yml @@ -0,0 +1,49 @@ +name: Test windows build + +on: + pull_request: + +defaults: + run: + shell: bash + +jobs: + build: + runs-on: ${{ matrix.os-target.os }} + strategy: + matrix: + os-target: + - os: windows-latest + target: x86_64-pc-windows-msvc + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Conda (windows) + if: matrix.os-target.os == 'windows-latest' + uses: s-weigand/setup-conda@v1 + with: + update-conda: true + activate-conda: false + python-version: "3.11" + + - name: Install pdftotext dependencies (windows) + if: matrix.os-target.os == 'windows-latest' + run: | + conda --version + conda install -c conda-forge poppler ocrympdf=14.2.0 + + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + with: + toolchain: stable + target: ${{ matrix.os-target.target }} + + - name: Install Statement Sensei dependencies (windows) + if: matrix.os-target.os == 'windows-latest' + uses: ./.github/actions/setup-python-poetry + with: + python-version: "3.11" + poetry-version: "1.8.3" + poetry-install-args: --with main --with build --without dev --extras ocrmypdf