Manual test for Axom's TPLs on Windows #82
This file contains 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
# 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@v2 | |
with: | |
submodules: recursive | |
- name: Set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
- 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@v2 | |
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@v2 | |
if: ${{ always() }} | |
with: | |
name: ctest_artifacts_${{ matrix.triplet }}_${{ matrix.cfg }}.zip | |
path: | | |
${{ github.workspace }}/build_axom/**/*.xml |