don't install pcc on ubuntu-20.04, where it is broken #18
Workflow file for this run
This file contains 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 | |
on: push | |
jobs: | |
c-lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup clang-tidy | |
run: sudo apt-get install -y clang-tidy | |
- name: Run tests | |
run: make clint | |
c: | |
strategy: | |
fail-fast: false | |
matrix: | |
# compiler: ["llvm", "gcc"] | |
# # compiler targets (ideally): clang, gcc, MSVCC, pcc, tcc, icc, | |
os: [ubuntu-latest, windows-latest, macos-latest, macos-13, 'ubuntu-20.04'] | |
# include: | |
# - os: windows-latest | |
# compiler: msvc | |
# - os: windows-latest | |
# compiler: mingw | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Use Python 3.10 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache-dependency-path: '*/requirements.txt' | |
- name: Setup tcc, pcc | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: sudo apt-get install -y tcc pcc | |
# - name: Setup Cpp ${{ matrix.compiler }} | |
# uses: aminya/setup-cpp@v1 | |
# if: ${{ contains(matrix.compiler, fromJSON('["llvm", "gcc", "msvc"]')) }} | |
# with: | |
# compiler: ${{ matrix.compiler }} | |
# - name: Set up MinGW | |
# uses: egor-tensin/setup-mingw@v2 | |
# if: ${{ matrix.compiler == 'mingw' }} | |
# with: | |
# platform: x64 | |
- name: Run tests (linux) | |
if: ${{ contains(matrix.os, 'ubuntu') }} | |
run: make ctest${{ (matrix.os != 'ubuntu-latest' && '_auto') || '' }} | |
- name: Run tests (windows) | |
if: ${{ contains(matrix.os, 'windows') }} | |
run: make ctest_auto | |
- name: Run tests (macos) | |
if: ${{ contains(matrix.os, 'macos') }} | |
run: make ctest_auto | |
env: | |
NO_OPTIONAL_TESTS: true | |
COMPILER_OVERRIDE: clang | |