Skip to content

Commit

Permalink
Merge pull request #4 from mockingbirdnest/MSVC
Browse files Browse the repository at this point in the history
Add build workflow
  • Loading branch information
pleroy authored Oct 15, 2024
2 parents d794654 + 427d118 commit bd7af5b
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
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 }}
directory: ../Google

- 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 }}

0 comments on commit bd7af5b

Please sign in to comment.