Add windows cross-compilation build to test. #32
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
name: Rust | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install WebkitGTK development files | |
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 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 |