From 2e66e802a17741aa701b067a5210b46bf65f40ba Mon Sep 17 00:00:00 2001 From: Skye Deving <76892045+skyedeving@users.noreply.github.com> Date: Tue, 26 Jan 2021 20:48:43 -0600 Subject: [PATCH] Try using proper cmake steps --- .github/workflows/build.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c2f0d9..9522024 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,14 +41,21 @@ jobs: arch: win64_msvc2019_64 cached: ${{steps.cache-qt.outputs.cache-hit}} - - name: Install compiler - uses: ilammy/msvc-dev-cmd@v1 + - name: Create Build Environment + run: cmake -E make_directory ${{github.workspace}}/build - - name: cmake - run: | - mkdir build && cd build - cmake .. - make + - name: Configure CMake + shell: bash + env: + CC: gcc-10 + CXX: g++-10 + working-directory: ${{github.workspace}}/build + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build + working-directory: ${{github.workspace}}/build + shell: bash + run: cmake --build . --config $BUILD_TYPE --target Attorney_Online - name: Upload Artifact uses: actions/upload-artifact@v2