From 8ab22837e94275cd07b7dada746da6f180490a90 Mon Sep 17 00:00:00 2001 From: Sudo Arash Date: Sat, 24 Aug 2024 16:59:16 +0330 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 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 0000000..0d3e3fe --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,33 @@ +name: Build Extreme Math for Windows + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up MinGW for Windows + run: | + choco install mingw + + - name: Compile with g++ + run: | + g++ -std=c++11 -I./src/include -o build/extreme_math src/main.cpp src/logging.cpp src/equation.cpp src/tui.cpp + + - name: Upload build artifact + uses: actions/upload-artifact@v3 + with: + name: extreme-math-windows + path: | + extreme_math.exe