From f1fdd8896fc6d8426e6454735541eaef032abde7 Mon Sep 17 00:00:00 2001 From: Martin Ling Date: Mon, 8 Jan 2024 16:12:26 +0000 Subject: [PATCH] Add Windows to CI matrix. --- .github/workflows/rust.yml | 8 +++++++- vcpkg.json | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 vcpkg.json diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e3a57339..3f8388d4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -43,7 +43,7 @@ jobs: strategy: fail-fast: false matrix: - os: ['macos-latest', 'ubuntu-22.04'] + os: ['macos-latest', 'ubuntu-22.04', 'windows-latest'] rust: ['stable', '1.57'] runs-on: ${{ matrix.os }} @@ -63,6 +63,12 @@ jobs: run: brew install gtk4 pkg-config if: matrix.os == 'macos-latest' + - name: Install dependencies (Windows) + uses: lukka/run-vcpkg@v11 + with: + vcpkgGitCommitId: 2023.12.12 + if: matrix.os == 'windows-latest' + - uses: Swatinem/rust-cache@v2 - name: Build diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 00000000..9b5f9fb6 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,3 @@ +{ + "dependencies": ["gtk"] +}