types: add re_assert and re_assert_se definition #3138
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: MinGW-w64 Test | |
on: [push, pull_request] | |
jobs: | |
MinGW-w64-build: | |
runs-on: ubuntu-latest | |
env: | |
CMAKE_GENERATOR: Ninja | |
steps: | |
- name: fix flaky azure mirrors | |
if: ${{ runner.os == 'Linux' }} | |
run: | | |
sudo sed -i 's/azure\./de\./' /etc/apt/sources.list | |
- name: "install packages" | |
run: | | |
sudo apt-get update && sudo apt-get install -y mingw-w64 ninja-build | |
- uses: actions/checkout@v3 # needed for pr checkout | |
- uses: sreimers/pr-dependency-action@v0.5 | |
with: | |
name: baresip-win32 | |
repo: https://github.com/baresip/baresip-win32 | |
secret: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
with: | |
path: baresip-win32/re | |
- uses: actions/cache@v2 | |
id: openssl | |
with: | |
path: baresip-win32/openssl | |
key: ${{ runner.os }}-mingw-openssl-3.1.0 | |
- name: "build openssl" | |
if: steps.openssl.outputs.cache-hit != 'true' | |
run: | | |
wget https://www.openssl.org/source/openssl-3.1.0.tar.gz | |
tar -xzf openssl-3.1.0.tar.gz | |
mv openssl-3.1.0 baresip-win32/openssl | |
make -j$(nproc) -C baresip-win32 openssl | |
- name: "cmake upgrade" | |
run: | | |
curl -sL https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-linux-x86_64.sh -o cmakeinstall.sh \ | |
&& chmod +x cmakeinstall.sh \ | |
&& sudo ./cmakeinstall.sh --prefix=/usr/local --exclude-subdir \ | |
&& rm cmakeinstall.sh | |
- name: "build" | |
run: | | |
cd baresip-win32 && make retest | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: retest-exe | |
path: baresip-win32/re/build/test/retest.exe | |
retention-days: 1 | |
wintest: | |
runs-on: windows-2019 | |
needs: MinGW-w64-build | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v2 | |
- uses: sreimers/pr-dependency-action@v0.5 | |
with: | |
name: re | |
repo: https://github.com/baresip/re | |
secret: ${{ secrets.GITHUB_TOKEN }} | |
- name: "cv2pdb" | |
run: | | |
curl -L https://github.com/rainers/cv2pdb/releases/download/v0.52/cv2pdb-0.52.zip --output cv2pdb.zip | |
unzip -o cv2pdb.zip | |
shell: bash | |
- name: "prepare retest.exe" | |
run: mv retest-exe/retest.exe re/ && cd re && ../cv2pdb.exe ./retest.exe | |
shell: bash | |
- name: "run retest.exe" | |
run: cd re && ./retest.exe -v -ri | |
shell: bash |