From 68a4099641f814acc654bcbd89bb22aebe46308d Mon Sep 17 00:00:00 2001 From: Cvolton Date: Fri, 4 Oct 2024 13:36:45 +0200 Subject: [PATCH] try add github build workflow --- .github/workflows/build-x86.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build-x86.yml diff --git a/.github/workflows/build-x86.yml b/.github/workflows/build-x86.yml new file mode 100644 index 0000000..bf2d9ae --- /dev/null +++ b/.github/workflows/build-x86.yml @@ -0,0 +1,31 @@ +name: Build Binaries + +on: + workflow_dispatch: + push: + branches: + - '**' + +jobs: + build-windows: + name: Build Windows x86 + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Install TDM GCC 5.1.0 + run: | + curl https://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%205%20series/5.1.0-tdm-1%20DW2/gcc-5.1.0-tdm-1-dw2-core.zip/download -o compiler.zip -L + 7z x compiler.zip -oC:/TDM-GCC-5.1.0 + cmake -DCMAKE_C_COMPILER=C:/TDM-GCC-5.1.0/bin/gcc-dw2.exe -DCMAKE_CXX_COMPILER=C:/TDM-GCC-5.1.0/bin/g++-dw2.exe -B build -S . + cmake --build build --config Release + + - name: Temporarily save client build + uses: actions/upload-artifact@v3 + with: + name: cppshot-x86 + path: ./build/CppShot.exe \ No newline at end of file