diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1dd8043 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,30 @@ +name: Build Github++ + +on: + push: + branches: master + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + runs-on: windows-2022 + steps: + - uses: actions/checkout@v4 + + - name: Configure Github++ build + shell: pwsh + run: | + cmake --preset vs2022-windows "-DCMAKE_INSTALL_PREFIX=install" + + - name: Build Github++ + run: cmake --build vsbuild --config RelWithDebInfo + + - name: Install Github++ + run: cmake --install vsbuild --config RelWithDebInfo + + - name: Upload Github++ artifact + uses: actions/upload-artifact@master + with: + name: githubpp + path: ./install