@@ -28,96 +28,96 @@ jobs:
28
28
PKG_CONFIG_PATH : ' C:\gnome\lib\pkgconfig'
29
29
30
30
steps :
31
- - uses : actions/checkout@v3
32
- - uses : actions/cache@v3
33
- id : cache
34
- with :
35
- path : c:/gnome
36
- key : ${{ runner.os }}-gtk4-14.2
37
- restore-keys : |
38
- ${{ runner.os }}-gtk4-14.2
39
-
40
- - name : Set up the PATH environment
41
- run : |
42
- echo "C:\pkg-config-lite-0.28-1\bin" >> $GITHUB_PATH
43
- echo "C:\gnome\bin" >> $GITHUB_PATH
44
- shell : bash
45
-
46
- - name : Install pkgconfig-lite
47
- run : |
48
- Invoke-WebRequest -Uri https://deac-fra.dl.sourceforge.net/project/pkgconfiglite/0.28-1/pkg-config-lite-0.28-1_bin-win32.zip -OutFile /pkg_config_lite.zip -MaximumRetryCount 5
49
- Expand-Archive /pkg_config_lite.zip -DestinationPath C:\
50
- ls C:\
51
- ls C:\pkg-config-lite-0.28-1
52
- ls C:\pkg-config-lite-0.28-1\bin
53
- pkg-config --version
31
+ - uses : actions/checkout@v3
32
+ - uses : actions/cache@v3
33
+ id : cache
34
+ with :
35
+ path : c:/gnome
36
+ key : ${{ runner.os }}-gtk4-14.2
37
+ restore-keys : |
38
+ ${{ runner.os }}-gtk4-14.2
54
39
55
- - name : Clone GTK
56
- working-directory : /
57
- if : steps.cache.outputs.cache-hit != 'true'
58
- run : |
59
- git clone https://gitlab.gnome.org/GNOME/gtk.git --depth 1
60
-
61
- - name : Setup Python
62
- uses : actions/setup-python@v2
63
- with :
64
- python-version : ' 3.x'
65
-
66
- - name : Install Python Dependencies
67
- run : pip install meson ninja
68
-
69
- - name : Setup MSVC
70
- uses : bus1/cabuild/action/msdevshell@v1
71
- with :
72
- architecture : x64
73
-
74
- - name : Install Rust
75
- uses : actions-rs/toolchain@v1
76
- with :
77
- profile : minimal
78
- toolchain : stable
79
- components : clippy
80
-
81
- - name : Prepare GTK build
82
- working-directory : /gtk
83
- if : steps.cache.outputs.cache-hit != 'true'
84
- run : |
85
- meson setup builddir --prefix=C:/gnome -Dbackend_max_links=1 -Ddemos=false -Dbuild-tests=false -Dmedia-gstreamer=disabled -Dbuild-examples=false -Dglib:tests=false -Dharfbuzz:tests=disabled -Dharfbuzz:docs=disabled -Dgraphene:tests=false -Dgdk-pixbuf:tests=false -Dcairo:tests=disabled
86
-
87
- - name : Build and install GTK
88
- working-directory : /gtk
89
- if : steps.cache.outputs.cache-hit != 'true'
90
- run : |
91
- meson install -C builddir
40
+ - name : Set up the PATH environment
41
+ run : |
42
+ echo "C:\pkg-config-lite-0.28-1\bin" >> $GITHUB_PATH
43
+ echo "C:\gnome\bin" >> $GITHUB_PATH
44
+ shell : bash
92
45
93
- - name : Build
94
- uses : actions-rs/cargo@v1
95
- with :
96
- command : build
97
- args : --features v4_14,xml_validation
98
- - name : Clippy
99
- uses : actions-rs/cargo@v1
100
- with :
101
- command : clippy
102
- args : --features v4_14,xml_validation
103
- - name : Tests
104
- uses : actions-rs/cargo@v1
105
- with :
106
- command : test
107
- args : --features v4_14,xml_validation
46
+ - name : Install pkgconfig-lite
47
+ run : |
48
+ Invoke-WebRequest -Uri https://deac-fra.dl.sourceforge.net/project/pkgconfiglite/0.28-1/pkg-config-lite-0.28-1_bin-win32.zip -OutFile /pkg_config_lite.zip -MaximumRetryCount 5
49
+ Expand-Archive /pkg_config_lite.zip -DestinationPath C:\
50
+ ls C:\
51
+ ls C:\pkg-config-lite-0.28-1
52
+ ls C:\pkg-config-lite-0.28-1\bin
53
+ pkg-config --version
108
54
109
- - name : Build gdk-win32
110
- uses : actions-rs/cargo@v1
111
- with :
112
- command : build
113
- args : --features egl,win32 --manifest-path ./gdk4-win32/Cargo.toml
114
- - name : Clippy gdk-win32
115
- uses : actions-rs/cargo@v1
116
- with :
117
- command : clippy
118
- args : --features egl,win32 --manifest-path ./gdk4-win32/Cargo.toml
119
- - name : Tests gdk-win32
120
- uses : actions-rs/cargo@v1
121
- with :
122
- command : test
123
- args : --features egl,win32 --manifest-path ./gdk4-win32/Cargo.toml
55
+ - name : Clone GTK
56
+ working-directory : /
57
+ if : steps.cache.outputs.cache-hit != 'true'
58
+ run : |
59
+ git clone https://gitlab.gnome.org/GNOME/gtk.git --depth 1
60
+
61
+ - name : Setup Python
62
+ uses : actions/setup-python@v2
63
+ with :
64
+ python-version : " 3.x"
65
+
66
+ - name : Install Python Dependencies
67
+ run : pip install meson ninja
68
+
69
+ - name : Setup MSVC
70
+ uses : bus1/cabuild/action/msdevshell@v1
71
+ with :
72
+ architecture : x64
73
+
74
+ - name : Prepare GTK build
75
+ working-directory : /gtk
76
+ if : steps.cache.outputs.cache-hit != 'true'
77
+ run : |
78
+ meson setup builddir --prefix=C:/gnome -Dbackend_max_links=1 -Ddemos=false -Dbuild-tests=false -Dmedia-gstreamer=disabled -Dbuild-examples=false -Dglib:tests=false -Dharfbuzz:tests=disabled -Dharfbuzz:docs=disabled -Dgraphene:tests=false -Dgdk-pixbuf:tests=false -Dcairo:tests=disabled
79
+
80
+ - name : Build and install GTK
81
+ working-directory : /gtk
82
+ if : steps.cache.outputs.cache-hit != 'true'
83
+ run : |
84
+ meson install -C builddir
85
+
86
+ - name : Install Rust
87
+ uses : actions-rs/toolchain@v1
88
+ with :
89
+ profile : minimal
90
+ toolchain : stable
91
+ components : clippy
92
+
93
+ - name : Build
94
+ uses : actions-rs/cargo@v1
95
+ with :
96
+ command : build
97
+ args : --features v4_14,xml_validation
98
+ - name : Clippy
99
+ uses : actions-rs/cargo@v1
100
+ with :
101
+ command : clippy
102
+ args : --features v4_14,xml_validation
103
+ - name : Tests
104
+ uses : actions-rs/cargo@v1
105
+ with :
106
+ command : test
107
+ args : --features v4_14,xml_validation
108
+
109
+ - name : Build gdk-win32
110
+ uses : actions-rs/cargo@v1
111
+ with :
112
+ command : build
113
+ args : --features egl,win32 --manifest-path ./gdk4-win32/Cargo.toml
114
+ - name : Clippy gdk-win32
115
+ uses : actions-rs/cargo@v1
116
+ with :
117
+ command : clippy
118
+ args : --features egl,win32 --manifest-path ./gdk4-win32/Cargo.toml
119
+ - name : Tests gdk-win32
120
+ uses : actions-rs/cargo@v1
121
+ with :
122
+ command : test
123
+ args : --features egl,win32 --manifest-path ./gdk4-win32/Cargo.toml
0 commit comments