From 880433ebbf46a48adc54138a82dc7ddcbb9efd16 Mon Sep 17 00:00:00 2001 From: hakasapl Date: Fri, 19 Jul 2024 14:44:54 -0400 Subject: [PATCH] added github build action --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..be8e0f49 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build and Publish Artifacts + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: ilammy/msvc-dev-cmd@v1 + + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: true + fetch-depth: 0 + + - name: Configure CMake + run: | + cmake --preset x64-release + + - name: Build project + run: | + cd build/x64-release + cmake --build --preset x64-release --target install + + - name: Upload build artifacts + uses: actions/upload-artifact@v4 + with: + name: install-artifacts + path: install/x64-release