From 160ecfee37891df3134e63161e061ef6fe1a2e09 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 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e3a57339..dd1ea1a7 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,15 @@ jobs: run: brew install gtk4 pkg-config if: matrix.os == 'macos-latest' + - name: vcpkg build + uses: johnwason/vcpkg-action@v5 + id: vcpkg + with: + pkgs: pkgconf gtk4 + triplet: x64-windows-release + token: ${{ github.token }} + if: matrix.os == 'windows-latest' + - uses: Swatinem/rust-cache@v2 - name: Build