Use an MSVC-specific macro to suppress warnings (Windows only) #126
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: run test cases | |
| on: | |
| push: | |
| branches: [v2] | |
| pull_request: | |
| branches: [v2] | |
| jobs: | |
| testing: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, ubuntu-24.04] | |
| compiler: [gcc, clang] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| CC: ${{ matrix.compiler }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install bats | |
| run: | | |
| curl -L -o bats-core-1.2.1.tar.gz https://github.com/bats-core/bats-core/archive/v1.2.1.tar.gz | |
| tar zxvf bats-core-1.2.1.tar.gz | |
| cd bats-core-1.2.1 && | |
| sudo ./install.sh /usr/local | |
| - name: install uncrustify | |
| run: | | |
| curl -LO http://launchpadlibrarian.net/516341795/uncrustify_0.72.0+dfsg1-2_amd64.deb | |
| sudo dpkg -i uncrustify_0.72.0+dfsg1-2_amd64.deb || true | |
| - name: build packcc | |
| run: | | |
| ( | |
| cd build/$CC | |
| make all check | |
| ) |