Install GCC in MSYS2 #364
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 mingw-w64-ucrt-x86_64-cmake mingw-w64-ucrt-x86_64-gcc | |
- 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 | |
- uses: actions/checkout@v4 | |
- run: make -j release | |
working-directory: custom-prompt |