diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..7ff6189 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,45 @@ +# Copyright (c) 2026 LG Electronics, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http:#www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# SPDX-License-Identifier: Apache-2.0 + +name: OpenSCMS/oscms-asn1c-codecs + +on: + push: + branches: ["main"] + pull_request: + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Debug + +jobs: + build: + runs-on: ubuntu-latest + + container: + image: ghcr.io/openscms/oscms-ci-docker:latest + + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Build and run tests + run: | + cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} + cmake --build ${{ github.workspace }}/build --config ${{ env.BUILD_TYPE }} + cd ${{ github.workspace }}/build + ctest -C ${{env.BUILD_TYPE}} diff --git a/submodules/api b/submodules/api index b5795cd..64eb481 160000 --- a/submodules/api +++ b/submodules/api @@ -1 +1 @@ -Subproject commit b5795cd96de79daffc436e555e848ea14ae9fc76 +Subproject commit 64eb481049535206c93e7df242c47c1809286d0d