render_replay: Add unset for optional parameters #1743
This file contains hidden or 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: Windows MSVC | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - ".github/workflows/windows-msvc.yml" | |
| - "gdk4/**" | |
| - "gdk4-win32/**" | |
| - "gsk4/**" | |
| - "gtk4/**" | |
| - "gtk4-macros/**" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/windows-msvc.yml" | |
| - "gdk4/**" | |
| - "gdk4-win32/**" | |
| - "gsk4/**" | |
| - "gtk4/**" | |
| - "gtk4-macros/**" | |
| workflow_dispatch: | |
| jobs: | |
| ci-msvc: | |
| name: Windows MSVC | |
| runs-on: windows-latest | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/cache@v4 | |
| id: cache | |
| with: | |
| path: c:/gnome | |
| key: ${{ runner.os }}-gtk4-19 | |
| restore-keys: | | |
| ${{ runner.os }}-gtk4-19 | |
| - name: Set up the PATH environment | |
| run: | | |
| echo "C:\pkg-config-lite-0.28-1\bin" >> $GITHUB_PATH | |
| echo "C:\gnome\bin" >> $GITHUB_PATH | |
| shell: bash | |
| - name: Install pkgconfig-lite | |
| run: | | |
| Invoke-WebRequest -UserAgent "Wget" -Uri https://downloads.sourceforge.net/project/pkgconfiglite/0.28-1/pkg-config-lite-0.28-1_bin-win32.zip -OutFile /pkg_config_lite.zip -MaximumRetryCount 5 | |
| Expand-Archive /pkg_config_lite.zip -DestinationPath C:\ | |
| ls C:\ | |
| ls C:\pkg-config-lite-0.28-1 | |
| ls C:\pkg-config-lite-0.28-1\bin | |
| pkg-config --version | |
| - name: Clone GLib | |
| working-directory: / | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| git clone https://gitlab.gnome.org/GNOME/glib.git --depth 1 | |
| - name: Clone GTK | |
| working-directory: / | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| git clone https://gitlab.gnome.org/GNOME/gtk.git --depth 1 | |
| - name: Setup Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - name: Install Python Dependencies | |
| run: pip install meson ninja setuptools packaging | |
| - name: Setup MSVC | |
| uses: bus1/cabuild/action/msdevshell@v1 | |
| with: | |
| architecture: x64 | |
| - name: Set PKG_CONFIG_PATH | |
| shell: bash | |
| run: | | |
| echo "PKG_CONFIG_PATH=C:/gnome/lib/pkgconfig" >> $GITHUB_ENV | |
| - name: Prepare GLib build | |
| working-directory: /glib | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| meson setup builddir --prefix=C:/gnome -Dtests=false -Dsysprof=disabled | |
| - name: Build and install GLib | |
| working-directory: /glib | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| meson install -C builddir | |
| - name: Prepare GTK build | |
| working-directory: /gtk | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| meson setup builddir --prefix=C:/gnome -Dbuild-demos=false -Dbuild-tests=false -Dvulkan=disabled -Dmedia-gstreamer=disabled -Dbuild-examples=false -Dharfbuzz:tests=disabled -Dharfbuzz:docs=disabled -Dgraphene:tests=false -Dgdk-pixbuf:tests=false -Dcairo:tests=disabled -Dgdk-pixbuf:documentation=false | |
| - name: Build and install GTK | |
| working-directory: /gtk | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| meson install -C builddir | |
| - name: Install Rust | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| profile: minimal | |
| toolchain: stable | |
| components: clippy | |
| - name: Build | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: build | |
| args: --features v4_20,xml_validation | |
| - name: Clippy | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| args: --features v4_20,xml_validation | |
| - name: Tests | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --features v4_20,xml_validation | |
| - name: Build gdk-win32 | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: build | |
| args: --features v4_20,egl,win32 --manifest-path ./gdk4-win32/Cargo.toml | |
| - name: Clippy gdk-win32 | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: clippy | |
| args: --features egl,win32 --manifest-path ./gdk4-win32/Cargo.toml | |
| - name: Tests gdk-win32 | |
| uses: actions-rs/cargo@v1 | |
| with: | |
| command: test | |
| args: --features egl,win32 --manifest-path ./gdk4-win32/Cargo.toml |