-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (34 loc) · 1.32 KB
/
cpp_integration_tests_32bit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: C++ Integration Tests (ubuntu-latest gcc 32-bit)
on:
pull_request:
push:
branches: main
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: support_32bit
run: sudo dpkg --add-architecture i386 && sudo apt update && sudo apt-get install gcc-multilib g++-multilib -y
- id: install_conan
uses: turtlebrowser/get-conan@main
with:
version: 1.65.0
- id: patch_conan
run: conan profile new default --detect && conan profile update settings.compiler.libcxx=libstdc++11 default
- id: run_conan
run: cd ${GITHUB_WORKSPACE}/test &&
export CFLAGS=-m32 &&
export CXXFLAGS=-m32 &&
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig &&
conan install -e CXXFLAGS=-m32 --generator cmake_find_package --install-folder ../build_test/conan-dependencies .
- id: cmake
run: cd ${GITHUB_WORKSPACE}/test &&
export CFLAGS=-m32 &&
export CXXFLAGS=-m32 &&
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig &&
cmake -DCMAKE_BUILD_TYPE=Debug -B../build_test -S.
- id: make
run: cd ${GITHUB_WORKSPACE}/build_test && make
- id: run
run: cd ${GITHUB_WORKSPACE}/build_test && ./ForscapeTests