From 6e3f869fb0423cce2652b110920f09459c8e9ff6 Mon Sep 17 00:00:00 2001 From: pleroy Date: Tue, 15 Oct 2024 14:55:21 +0200 Subject: [PATCH 1/3] Workflow --- .github/workflows/build.yaml | 47 ++++++++++++++++++++++++++++++++++++ 1 file changed, 47 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..12ecb8c --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,47 @@ +name: Build + +on: + push: + branches: [ '*' ] + pull_request: + branches: [ '*' ] + workflow_dispatch: + +env: + PRINCIPIA_HEADERS_CORE_MATH: include + PRINCIPIA_MSVC_CORE_MATH: msvc + +jobs: + build: + runs-on: windows-latest + strategy: + matrix: + configuration: [Debug, Release] + steps: + - name: Checkout source files + uses: actions/checkout@v3 + + - name: Initialize build environment + uses: mockingbirdnest/actions/windows/initialize_build@main + with: + configuration: ${{ matrix.configuration }} + + - name: Download abseil artifact + uses: mockingbirdnest/actions/windows/download_artifact@main + with: + name: abseil-cpp + configuration: ${{ matrix.configuration }} + + - name: Rebuild ${{ matrix.configuration }} + uses: mockingbirdnest/actions/windows/rebuild@main + with: + configuration: ${{ matrix.configuration }} + solution_directory: ${{ env.PRINCIPIA_MSVC_CORE_MATH }} + + - name: Upload artifact + uses: mockingbirdnest/actions/windows/upload_artifact@main + with: + name: core-math + configuration: ${{ matrix.configuration }} + headers_directory: ${{ env.PRINCIPIA_HEADERS_CORE_MATH }} + solution_directory: ${{ env.PRINCIPIA_MSVC_CORE_MATH }} From b795d26559699f6b1ac215919e41b86c2ad9d7ab Mon Sep 17 00:00:00 2001 From: pleroy Date: Tue, 15 Oct 2024 15:09:38 +0200 Subject: [PATCH 2/3] Google directory --- .github/workflows/build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 12ecb8c..a79b595 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,6 +31,7 @@ jobs: with: name: abseil-cpp configuration: ${{ matrix.configuration }} + directory: Google - name: Rebuild ${{ matrix.configuration }} uses: mockingbirdnest/actions/windows/rebuild@main From 427d118cb5196112ba77dca91ebcf66348cfaaca Mon Sep 17 00:00:00 2001 From: pleroy Date: Tue, 15 Oct 2024 18:25:25 +0200 Subject: [PATCH 3/3] One level up --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a79b595..52c66be 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -31,7 +31,7 @@ jobs: with: name: abseil-cpp configuration: ${{ matrix.configuration }} - directory: Google + directory: ../Google - name: Rebuild ${{ matrix.configuration }} uses: mockingbirdnest/actions/windows/rebuild@main