Skip to content

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

feat(ci) Adds manual workflow for publishing releases

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

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
run: cmake -B ${{github.workspace}}/build-${{ matrix-os }} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DSEMVERUTIL_ENABLE_TESTS=ON -DSEMVERUTIL_STATIC_BINARY=ON

Check failure on line 23 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: 23, Col: 12): Unrecognized named-value: 'matrix-os'. Located at position 1 within expression: matrix-os .github/workflows/publish-release.yml (Line: 25, Col: 12): Unrecognized named-value: 'matrix-os'. Located at position 1 within expression: matrix-os
- name: Build
run: cmake --build ${{github.workspace}}/build-${{ matrix-os }} --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build-${{ matrix-os }}
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
- name: Upload
uses: actions/upload-artifact@v4
with:
name: dist=${{ matrix.os }}
path: |
build=${{ matrix=os }}/src/semverutil