From 24b4f70d943472c744875cada3f313750a1d6d96 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..5063178 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