Skip to content

perf: read a configuration JSON file to run performance tests. #8

perf: read a configuration JSON file to run performance tests.

perf: read a configuration JSON file to run performance tests. #8

Workflow file for this run

name: Testing (Windows)
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: windows-latest
steps:
# Step 1: Clone the repository
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Set up MSYS2 with MinGW64 and install required tools
- name: Setup MSYS2 with MinGW64
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-ninja
zip
git
- name: Clone GoogleTest into external directory
shell: msys2 {0}
run: git clone https://github.com/google/googletest.git external/googletest
- name: Configure with CMake using Ninja
shell: msys2 {0}
run: cmake -G "Ninja" -S build/testing -B build/testing
- name: Build with CMake
shell: msys2 {0}
run: cmake --build build/testing
- name: Upload Windows binary
uses: actions/upload-artifact@v4
with:
name: MPM-Geomechanics-benchmark-windows
path: build/testing/MPM-Geomechanics-benchmark.exe