Upgrade the build action to the latest setup #50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [ '*' ] | |
| pull_request: | |
| branches: [ '*' ] | |
| workflow_dispatch: | |
| env: | |
| PRINCIPIA_HEADERS_CORE_MATH: include | |
| PRINCIPIA_MSVC_CORE_MATH: msvc | |
| PRINCIPIA_SOLUTION_CORE_MATH: msvc/core-math.slnf | |
| 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 }} | |
| directory: ../Google | |
| - name: Rebuild ${{ matrix.configuration }} | |
| uses: mockingbirdnest/actions/windows/rebuild@main | |
| with: | |
| configuration: ${{ matrix.configuration }} | |
| solution_glob: ${{ 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 }} |