140 lines
4.0 KiB
YAML
140 lines
4.0 KiB
YAML
name: test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
# TODO: Test statically linked
|
|
|
|
jobs:
|
|
test-linux:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: dependencies
|
|
run: |
|
|
sudo apt install gcc-10 g++-10 libgcc-10-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 8b163d80aa30afd37027e826f6e8becd8e62ee2f
|
|
git checkout FETCH_HEAD
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
|
make -j
|
|
sudo make install
|
|
cd ../../cpptrace
|
|
- name: build and test
|
|
run: |
|
|
python3 ci/test-all-configs.py
|
|
test-macos:
|
|
runs-on: macos-13
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 8b163d80aa30afd37027e826f6e8becd8e62ee2f
|
|
git checkout FETCH_HEAD
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
|
make -j
|
|
sudo make install
|
|
cd ../../cpptrace
|
|
- name: dependencies
|
|
run: |
|
|
pip3 install colorama
|
|
- name: build and test
|
|
run: |
|
|
python3 ci/test-all-configs.py
|
|
test-windows-msvc:
|
|
runs-on: windows-2019
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 8b163d80aa30afd37027e826f6e8becd8e62ee2f
|
|
git checkout FETCH_HEAD
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
|
msbuild INSTALL.vcxproj
|
|
cd ../../cpptrace
|
|
- name: build and test
|
|
run: |
|
|
python3 ci/test-all-configs.py --msvc-only
|
|
test-windows-clang:
|
|
runs-on: windows-2019
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 8b163d80aa30afd37027e826f6e8becd8e62ee2f
|
|
git checkout FETCH_HEAD
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE
|
|
msbuild INSTALL.vcxproj
|
|
cd ../../cpptrace
|
|
- name: build and test
|
|
run: |
|
|
python3 ci/test-all-configs.py --clang-only
|
|
test-windows-mingw:
|
|
runs-on: windows-2019
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- 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 8b163d80aa30afd37027e826f6e8becd8e62ee2f
|
|
git checkout FETCH_HEAD
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DPIC_ALWAYS=TRUE -DBUILD_DWARFDUMP=FALSE -G"Unix Makefiles"
|
|
make -j
|
|
make install
|
|
cd ../../cpptrace
|
|
- name: build and test
|
|
run: |
|
|
python3 ci/test-all-configs.py --mingw-only
|