Skip to content

Manual test for Axom's TPLs on Windows #87

Manual test for Axom's TPLs on Windows

Manual test for Axom's TPLs on Windows #87

# This is a basic workflow that is manually triggered
name: Manual test for Axom's TPLs on Windows
# Controls when the action will run.
# This workflow runs when manually triggered using the UI or API.
on:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This job invokes uberenv to build our TPLs for two "triplets"
run_uberenv:
name: Runs ${{ matrix.triplet }} ${{ matrix.cfg }} uberenv with vcpkg
# The type of runner that the job will run on
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: ["x64", "x86"]
cfg: ["Debug", "Release"]
include:
- arch: "x64"
triplet: "x64-windows"
msvc: "202264"
- arch: "x86"
triplet: "x86-windows"
msvc: "2022"
steps:
- name: Checkout repo w/ submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: List path and files
run: ls
- name: Run uberenv (${{ matrix.triplet }})
run: python3 ./scripts/uberenv/uberenv.py --triplet ${{ matrix.triplet }}
- name: Save Uberenv logs
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: uberenv_artifacts_${{ matrix.triplet }}_${{ matrix.cfg }}.zip
path: |
${{ github.workspace }}/uberenv_libs/vcpkg/buildtrees/*/*.log
${{ github.workspace }}/uberenv_libs/vcpkg/buildtrees/*/*.err
${{ github.workspace }}/uberenv_libs/*.cmake
- name: Copy host-config
run: |
ls
Copy-Item -Path ".\uberenv_libs\*.cmake" -Destination ".\hc.cmake"
- name: Configure axom
run: |
python3 config-build.py -bp build_axom -ip install_axom -hc hc.cmake --msvc ${{ matrix.msvc }}
- name: Build axom (${{ matrix.triplet }} ${{ matrix.cfg }})
run: |
cd build_axom
ls
cmake --build . --config ${{ matrix.cfg }}
- name: Test axom (${{ matrix.triplet }} ${{ matrix.cfg }})
run: |
cd build_axom
ls
ctest -C ${{ matrix.cfg }} --no-compress-output -T Test
- name: Save CTest logs
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: ctest_artifacts_${{ matrix.triplet }}_${{ matrix.cfg }}.zip
path: |
${{ github.workspace }}/build_axom/**/*.xml