From bd40db592881f4faffab9731fed788a37b949fa6 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 21 Sep 2023 12:31:05 -0500 Subject: [PATCH] Commit initial build workflow --- .github/workflows/build.yaml | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/build.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..f7d4c7d --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,43 @@ +on: + push: + branches: [master] + pull_request: + branches: [master] + +env: + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-22.04 + defaults: + run: + shell: msys2 {0} + + steps: + - uses: msys2/setup-msys2@v3 + with: + install: mingw-w64-x86_64-toolchain + msystem: mingw64 + release: false + + - name: Install Qt + uses: jurplel/install-qt-action@v2 + with: + version: "6.5.2" + host: "linux" + target: "desktop" + arch: "gcc_64" + dir: "${{github.workspace}}/qt/" + install-deps: "true" + + - name: List files in Qt + run: find ${{env.Qt5_Dir}} + + - uses: actions/checkout@v2 + + - name: Configure CMake + run: cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_PREFIX_PATH="${{env.Qt5_Dir}}/lib/cmake/" -DQt5_DIR=${{env.Qt5_Dir}}/lib/cmake/Qt5/ -G "CodeBlocks - MinGW Makefiles" -B '${{github.workspace}}'/build + + - name: Build + run: cmake --build '${{github.workspace}}'/build --target RePr