-
-
Notifications
You must be signed in to change notification settings - Fork 6
62 lines (56 loc) · 2.09 KB
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Rust
on:
push:
branches: [ "master", "dev" ]
pull_request:
branches: [ "master", "dev" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Install WebkitGTK development files
run: sudo apt-get install -y libwebkit2gtk-4.1-dev mingw-w64 xvfb
- uses: actions/checkout@v3
- name: Set up CEF
run: ${GITHUB_WORKSPACE}/get-cef.sh
- name: Build with CEF
run: CEF_PATH="${GITHUB_WORKSPACE}/cef/$(ls cef)" cargo build --release --verbose --features cef
- name: Build with CEF (threadsafe)
run: CEF_PATH="${GITHUB_WORKSPACE}/cef/$(ls cef)" cargo build --release --verbose --features cef,threadsafe
- name: Run tests with CEF
run: |
CEF_PATH="${GITHUB_WORKSPACE}/cef/$(ls cef)" ${GITHUB_WORKSPACE}/setup-cef-files.sh
CEF_PATH="${GITHUB_WORKSPACE}/cef/$(ls cef)" RUST_BACKTRACE=full RUST_LOG=debug xvfb-run cargo test --verbose --features cef,threadsafe --lib --bins --tests
- name: Build with WebkitGTK
run: cargo build --release --verbose --features webkitgtk
- name: Build with WebkitGTK (threadsafe)
run: cargo build --release --verbose --features webkitgtk,threadsafe
- name: Run tests with WebkitGTK
run: RUST_BACKTRACE=full RUST_LOG=debug xvfb-run cargo test --verbose --features webkitgtk,threadsafe
- name: Add x86_64-pc-windows-gnu target for Rust
run: rustup target add x86_64-pc-windows-gnu
- name: Build with Edge WebView2 (MinGW)
run: cargo build --release --verbose --features edge2 --target=x86_64-pc-windows-gnu
build-windows:
runs-on: windows-latest
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/checkout@v3
#- name: Set up CEF
# shell: pwsh
# run: .\get-cef.ps1
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --features edge2
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --features edge2,threadsafe