# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage. # See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml name: CMake on a single platform on: push: branches: [ "master" ] pull_request: branches: [ "master" ] env: # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Release jobs: build: runs-on: archlinux steps: - uses: actions/checkout@v4 - name: Stop previous server if running run: ~/stop.sh fourier || echo service was not started - name: clear old installation run: xargs rm < ~/build/install_manifest.txt || echo previous installation not found - name: clear old builddir run: rm -rf ~/build || echo previous installation not found - name: Configure CMake run: cmake -B ~/build -DCMAKE_INSTALL_PREFIX=~/.local - name: Build run: cmake --build ~/build - name: install run: make -C ~/build install - name: Start server run: ~/start.sh fourier