From 701082a6c645d0e51adb918c49a707d58e1049ca Mon Sep 17 00:00:00 2001 From: Vishal Pankaj Chandratreya <19171016+tfpf@users.noreply.github.com> Date: Fri, 1 Nov 2024 12:29:35 +0530 Subject: [PATCH] Windows workflow with MSYS2 --- .github/workflows/package.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index cabf8b6..b2060af 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -7,6 +7,28 @@ on: workflow_dispatch: jobs: + build_windows: + name: build on windows-2022 + runs-on: windows-2022 + defaults: + run: + shell: msys2 {0} + steps: + - uses: msys2/setup-msys2@v2 + with: + msystem: ucrt64 + install: git make + pacboy: cmake gcc pkgconf + - run: | + git clone https://github.com/libgit2/libgit2.git + mkdir libgit2/build + cd libgit2/build + cmake .. -DBUILD_CLI=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF + cmake --build . --target install --parallel 4 + - uses: actions/checkout@v4 + - run: make -j release + working-directory: custom-prompt + build_macos: name: build on ${{ matrix.os.name }} runs-on: ${{ matrix.os.name }}