@@ -2,7 +2,6 @@ name: Main
2
2
3
3
on :
4
4
push :
5
- branches : [main]
6
5
pull_request :
7
6
branches : ["**"]
8
7
merge_group :
20
19
strategy :
21
20
fail-fast : false
22
21
matrix :
23
- platform :
24
- - { target: aarch64-apple-darwin, os: macos-14, test: true }
25
- - { target: x86_64-apple-darwin, os: macos-13, test: true }
26
- - { target: x86_64-unknown-linux-gnu, os: ubuntu-24.04, test: true }
27
- - { target: x86_64-pc-windows-msvc, os: windows-latest, test: true }
28
- - { target: i686-pc-windows-msvc, os: windows-latest, test: false }
29
- - { target: aarch64-pc-windows-msvc, os: windows-latest, test: false }
30
- - {
31
- target : aarch64-unknown-linux-ohos,
32
- os : ubuntu-24.04,
33
- test : false,
34
- }
35
- - { target: arm-linux-androideabi, os: ubuntu-24.04, test: false }
36
- features :
37
- [
38
- " " ,
39
- " chains sm-raw-window-handle-06" ,
40
- " chains sm-raw-window-handle-05" ,
41
- ]
42
22
include :
43
- - features : " sm-x11 sm-wayland-default"
44
- platform :
45
- { target: x86_64-unknown-linux-gnu, os: ubuntu-24.04, test: true }
46
- - features : " chains sm-angle-builtin"
47
- platform :
48
- { target: x86_64-pc-windows-msvc, os: windows-latest, test: true }
49
23
- features : " chains sm-no-wgl sm-angle-builtin"
50
24
platform :
51
25
{ target: x86_64-pc-windows-msvc, os: windows-latest, test: true }
@@ -62,29 +36,12 @@ jobs:
62
36
with :
63
37
targets : ${{ matrix.platform.target }}
64
38
- name : Build
65
- run : |
66
- rustup target add ${{ matrix.platform.target }}
67
- cargo build --features "${{ matrix.features }}" --target ${{ matrix.platform.target }}
68
- - name : Test
69
- if : ${{ matrix.platform.test && startsWith(matrix.platform.os, 'ubuntu') }}
70
- run : |
71
- weston --no-config --socket=wl-test-env --backend=headless &
72
- WAYLAND_DISPLAY=wl-test-env xvfb-run cargo test --features "${{ matrix.features }}" --target ${{ matrix.platform.target }}
73
- - name : Test
74
- if : ${{ matrix.platform.test && !startsWith(matrix.platform.os, 'ubuntu') }}
75
39
run : |
76
40
cargo test --features "${{ matrix.features }}" --target ${{ matrix.platform.target }}
77
- Format :
78
- name : Run `rustfmt`
79
- runs-on : ubuntu-24.04
80
- steps :
81
- - uses : actions/checkout@v4
82
- - uses : mkroening/rust-toolchain-toml@main
83
- - run : cargo fmt --check
84
41
build_result :
85
42
name : Result
86
43
runs-on : ubuntu-24.04
87
- needs : ["Build", "Format" ]
44
+ needs : ["Build"]
88
45
if : always()
89
46
steps :
90
47
- name : Mark the job as successful
0 commit comments