name: build on: push: pull_request: jobs: build-linux: runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: compiler: [gcc, clang] steps: - uses: actions/checkout@v4 - name: dependencies run: | sudo apt install gcc-10 g++-10 libgcc-10-dev libunwind8-dev pip3 install colorama - name: libdwarf run: | cd .. mkdir libdwarf cd libdwarf git init git remote add origin https://github.com/jeremy-rifkin/libdwarf-code.git git fetch --depth 1 origin 6216e185863f41d6f19ab850caabfff7326020d7 git checkout FETCH_HEAD mkdir build cd build cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE make -j sudo make install cd ../../cpptrace - name: build run: | python3 ci/build-in-all-configs.py --${{matrix.compiler}} build-macos: runs-on: macos-13 strategy: fail-fast: false matrix: compiler: [gcc, clang] steps: - uses: actions/checkout@v4 - name: dependencies run: | pip3 install colorama - name: libdwarf run: | cd .. mkdir libdwarf cd libdwarf git init git remote add origin https://github.com/jeremy-rifkin/libdwarf-code.git git fetch --depth 1 origin 6216e185863f41d6f19ab850caabfff7326020d7 git checkout FETCH_HEAD mkdir build cd build cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE make -j sudo make install cd ../../cpptrace - name: build run: | python3 ci/build-in-all-configs.py --${{matrix.compiler}} build-windows: runs-on: windows-2022 strategy: fail-fast: false matrix: compiler: [msvc, clang, gcc] steps: - uses: actions/checkout@v4 - name: Enable Developer Command Prompt uses: ilammy/msvc-dev-cmd@v1.10.0 - name: dependencies run: | pip3 install colorama - name: libdwarf run: | cd .. mkdir libdwarf cd libdwarf git init git remote add origin https://github.com/jeremy-rifkin/libdwarf-code.git git fetch --depth 1 origin 6216e185863f41d6f19ab850caabfff7326020d7 git checkout FETCH_HEAD mkdir build cd build if("${{matrix.compiler}}" -eq "gcc") { cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE -G"Unix Makefiles" make -j make install } else { cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE msbuild INSTALL.vcxproj } cd ../../cpptrace - name: build run: | python3 ci/build-in-all-configs.py --${{matrix.compiler}}