add missing file #213
This file contains hidden or 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: C/C++ CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - develop | |
| paths: | |
| - 'src/**' | |
| - 'include/**' | |
| - '.github/**' | |
| - 'tests/**' | |
| - configure.ac | |
| - Makefile.am | |
| pull_request: | |
| branches: [master] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| notification: | |
| runs-on: ubuntu-latest | |
| name: Notify start to IRC gitlama | |
| steps: | |
| - name: IRC notification | |
| uses: LanguageMachines/ticcactions/irc-init@v1 | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| needs: notification | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| compiler: [g++ -std=c++17, clang++ -std=c++17] | |
| steps: | |
| - uses: actions/checkout@v6.0.2 | |
| - uses: LanguageMachines/ticcactions/cpp-build-env@v1 | |
| - uses: LanguageMachines/ticcactions/cpp-dependencies@v1 | |
| - uses: LanguageMachines/ticcactions/irc-nick@v1 | |
| - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1 | |
| with: | |
| branch: ${{ github.ref_name }} | |
| module: ticcutils | |
| - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1 | |
| with: | |
| branch: ${{ github.ref_name }} | |
| module: libfolia | |
| - uses: LanguageMachines/ticcactions/cpp-submodule-build@v1 | |
| with: | |
| module: uctodata | |
| - uses: LanguageMachines/ticcactions/setup-cppcheck@v1 | |
| - name: Static Code-check | |
| if: ${{ env.action_status == '' }} | |
| run: cppcheck ${{ env.cpc_opts }} . | |
| - name: install libexttextcat | |
| uses: LanguageMachines/ticcactions/add-textcat@v1 | |
| - uses: LanguageMachines/ticcactions/cpp-safe-build@v1 | |
| - name: Notify IRC of build results | |
| uses: LanguageMachines/ticcactions/irc-status@v1 | |
| with: | |
| branch: ${{ github.ref_name }} | |
| nickname: ${{ env.nick }} | |
| status: ${{ env.action_status }} | |
| details: ${{ env.action_details }} | |
| continue-on-error: true | |
| - name: uctotests | |
| id: uctotests | |
| if: ${{ env.action_status == '' }} | |
| env: | |
| EXPECT: 0 | |
| LD_LIBRARY_PATH: $LD_LIBRARY_PATH:/usr/local/lib | |
| run: | | |
| cd tests | |
| ./testaction.sh | |
| TEST_STAT=$(cat status.tmp) | |
| if [ $TEST_STAT != 0 ] | |
| then | |
| echo "action_status=uctotests" >> $GITHUB_ENV | |
| fi | |
| echo "action_details=$TEST_STAT errors" >> $GITHUB_ENV | |
| continue-on-error: true | |
| - name: log problems | |
| if: >- | |
| ${{ env.action_status == 'uctotests' || | |
| steps.uctotests.outcome != 'success' }} | |
| run: | | |
| cat tests/testoutput/*.err | |
| cat tests/testoutput/*.diff | |
| - name: Notify IRC of results | |
| uses: LanguageMachines/ticcactions/irc-status@v1 | |
| with: | |
| branch: ${{ github.ref_name }} | |
| nickname: ${{ env.nick }} | |
| step: testing | |
| status: ${{ env.action_status }} | |
| details: ${{ env.action_details }} |