From 3d02a820fe11f1d32f945580acc6e4e993f40655 Mon Sep 17 00:00:00 2001 From: Bamidev Date: Sun, 3 Mar 2024 00:45:37 +0100 Subject: [PATCH] Add windows cross-compilation build to test. --- .github/workflows/rust.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ab2f3e8..f9a5b8b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,9 +16,13 @@ jobs: steps: - name: Install WebkitGTK development files - run: sudo apt-get install -y libwebkit2gtk-4.1-dev xvfb + run: sudo apt-get install -y libwebkit2gtk-4.1-dev mingw-w64 xvfb + - name: Add x86_64-pc-windows-gnu target + run: rustup target add x86_64-pc-windows-gnu - uses: actions/checkout@v3 - - name: Build + - name: Build with WebkitGTK run: cargo build --verbose --features webkitgtk + #- name: Build with Edge WebView2 + # run: cargo build --verbose --features edge2 --target=x86_64-pc-windows-gnu - name: Run tests run: RUST_BACKTRACE=full RUST_LOG=debug xvfb-run cargo test --verbose --features webkitgtk \ No newline at end of file