chore(deps): update reviewdog/action-actionlint action to v1.76.0 #1075
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
| # SPDX-FileCopyrightText: Copyright (c) 2021-2022 Polystat.org | |
| # SPDX-License-Identifier: MIT | |
| --- | |
| # yamllint disable rule:line-length | |
| name: build | |
| 'on': | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: build-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pdd: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
| # - uses: g4s8/pdd-action@master | |
| cpplint: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
| - name: Install cpplint | |
| run: sudo pip install cpplint | |
| - name: Cpplint | |
| run: cpplint --filter=-runtime/references,-runtime/string,-build/c++11 src/transpiler/** | |
| clang-format: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
| - name: Clang-format | |
| uses: jidicula/clang-format-action@v4.13.0 | |
| with: | |
| clang-format-version: '14' | |
| check-path: 'src/transpiler' | |
| fallback-style: 'Google' | |
| clang-tidy: | |
| needs: [cpplint, clang-format] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
| - uses: ./.github/actions/llvm | |
| - name: Clang-tidy | |
| run: | | |
| cd ./scripts | |
| python3 clang_tidy.py -h | |
| python3 clang_tidy.py | |
| gcc-c-torture: | |
| needs: [cpplint, clang-format] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
| - uses: ./.github/actions/llvm | |
| - name: Download gcc-c-torture | |
| uses: robinraju/release-downloader@v1.11 | |
| with: | |
| repository: "polystat/c2eo" | |
| tag: "0.1.16" | |
| fileName: "gcc.c-torture.tar.gz" | |
| - name: Unpack gcc-c-torture | |
| run: tar -xvf gcc.c-torture.tar.gz -C . > /dev/null | |
| - name: Transpilation | |
| run: | | |
| cd ./scripts | |
| python3 transpile.py -h | |
| python3 transpile.py ../gcc.c-torture -s gcc -n | |
| c-testcuite: | |
| needs: [cpplint, clang-format] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
| - uses: ./.github/actions/llvm | |
| - name: Download c-testcuite | |
| uses: robinraju/release-downloader@v1.11 | |
| with: | |
| repository: "polystat/c2eo" | |
| tag: "0.1.16" | |
| fileName: "c-testcuite.tar.gz" | |
| - name: Unpack c-testcuite | |
| run: tar -xvf c-testcuite.tar.gz -C . > /dev/null | |
| - name: Testing | |
| run: | | |
| cd ./scripts | |
| python3 test.py -h | |
| python3 test.py -p ../c-testcuite -s testcuite -n -c | |
| - name: Convert raw code coverage to report | |
| run: | | |
| cd ./bin/ | |
| llvm-profdata-16 merge -sparse ./*.profraw -o res.profdata | |
| llvm-cov-16 show ./c2eo ../src/transpiler/*.cpp -instr-profile=res.profdata > codecov.txt | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: testcuite | |
| path: bin/codecov.txt | |
| test_main: | |
| needs: [cpplint, clang-format] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
| - uses: ./.github/actions/llvm | |
| - name: Testing | |
| run: | | |
| cd ./scripts | |
| python3 test.py -h | |
| python3 test.py -s test -c | |
| - name: Convert raw code coverage to report | |
| run: | | |
| cd ./bin/ | |
| llvm-profdata-16 merge -sparse ./*.profraw -o res.profdata | |
| llvm-cov-16 show ./c2eo ../src/transpiler/*.cpp -instr-profile=res.profdata > codecov.txt | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: main | |
| path: bin/codecov.txt | |
| unit-tests: | |
| needs: [cpplint, clang-format] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
| - uses: ./.github/actions/llvm | |
| - name: Build c2eo | |
| run: cd ./scripts && python3 build_c2eo.py | |
| - name: Unit testing | |
| run: cd ./bin/ && ./unit_tests --gtest_filter=* | |
| codecov: | |
| needs: [clang-tidy, gcc-c-torture, c-testcuite, test_main, unit-tests] | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
| - run: mkdir bin/ | |
| - name: Download test main codecov report | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: main | |
| path: bin/main/ | |
| - name: Download testcuite codecov report | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: testcuite | |
| path: bin/testcuite/ | |
| - uses: codecov/codecov-action@v5 | |
| with: | |
| files: ./bin/main/codecov.txt,./bin/testcuite/codecov.txt |