Parallelise CMake, install using pacboy
#365
Workflow file for this run
This file contains 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: package | |
on: | |
push: | |
paths: | |
- '.github/workflows/package.yml' | |
- 'custom-prompt/*' | |
workflow_dispatch: | |
jobs: | |
build_windows: | |
runs-on: windows-2022 | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ucrt64 | |
install: git | |
pacboy: cmake gcc make pkgconf #mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-make mingw-w64-ucrt-x86_64-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 --parallel 4 | |
cmake --build . --target install --parallel 4 | |
- uses: actions/checkout@v4 | |
- run: make -j release | |
working-directory: custom-prompt |