Try to upload artifact on release #3
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
name: Continuous | ||
on: [push, tags] | ||
jobs: | ||
linux-mac: | ||
strategy: | ||
matrix: | ||
cfg: [{os: ubuntu-latest, cxx: g++-12}, | ||
{os: ubuntu-latest, cxx: g++-9}, | ||
{os: macos-latest, cxx: clang++}] | ||
config: [Release, Debug] | ||
runs-on: ${{ matrix.cfg.os }} | ||
env: | ||
CXX: ${{ matrix.cfg.cxx }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Configure CMake | ||
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.config }} | ||
- name: CMake Build | ||
run: cmake --build build --parallel | ||
- name: Run executable | ||
run: build/delete_face_addon model=build/catorus.geogram facet_index=0 | ||
- name: Deploy | ||
run: gh release upload $GITHUB_REF build/delete_face_addon%#%delete_face_addon_${{ matrix.cfg.os }} | ||
if: ${{ github.event_name == 'tags' }} | ||
windows-msvc: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Configure CMake | ||
run: cmake -B build | ||
- name: Release build | ||
run: cmake --build build --parallel --config Release | ||
- name: Release run | ||
run: build/Release/delete_face_addon.exe model=build/catorus.geogram facet_index=0 | ||
- name: Debug build | ||
run: cmake --build build --parallel --config Debug | ||
- name: Debug run | ||
run: build/Debug/delete_face_addon.exe model=build/catorus.geogram facet_index=0 |