Skip to content

feat(ci) Adds manual workflow for publishing releases #4

feat(ci) Adds manual workflow for publishing releases

feat(ci) Adds manual workflow for publishing releases #4

name: CMake
on:
workflow_dispatch: {}
push:
branches:
- feature/publish-release-from-ci
env:
BUILD_TYPE: Release
jobs:
build-and-test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-13
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Configure CMake
env:
BUILD_DIR: build-${{ matrix.os }}
run: cmake -B ${{github.workspace}}/${BUILD_DIR} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSEMVERUTIL_ENABLE_TESTS=ON -DSEMVERUTIL_STATIC_BINARY=ON
- name: Build
env:
BUILD_DIR: build-${{ matrix.os }}
run: cmake --build ${{github.workspace}}/${BUILD_DIR} --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build-${{ matrix.os }}
run: ctest -C ${{ env.BUILD_TYPE }} --output-on-failure
- name: Upload
working-directory: ${{github.workspace}}/build-${{ matrix.os }}
uses: actions/upload-artifact@v4

Check failure on line 35 in .github/workflows/publish-release.yml

View workflow run for this annotation

GitHub Actions / CMake

Invalid workflow file

The workflow is not valid. .github/workflows/publish-release.yml (Line: 35, Col: 7): Unexpected value 'uses' .github/workflows/publish-release.yml (Line: 36, Col: 7): Unexpected value 'with'
with:
name: dist=${{ matrix.os }}
path: |
src/semverutil