From 564b46cc662cd5400759a87e1ab92f2f3d922e8d Mon Sep 17 00:00:00 2001 From: "Matthias C. M. Troffaes" Date: Tue, 24 Sep 2024 09:59:38 +0100 Subject: [PATCH] Initial script. --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4c019ce --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: build + +on: + push: + branches: [ develop ] + pull_request: + branches: [ develop ] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + steps: + - uses: actions/checkout@v4 + - name: Windows + if: matrix.os == 'windows-latest' + run: | + msbuild inipp.sln + vstest.console /Platform:x64 x64\Debug\unittest.dll + - name: Ubuntu/MacOS + if: matrix.os != 'windows-latest' + run: | + cmake . + make + make test