-
Notifications
You must be signed in to change notification settings - Fork 127
31 lines (26 loc) · 908 Bytes
/
test-linux-i686.yml
File metadata and controls
31 lines (26 loc) · 908 Bytes
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
name: Linux i686 Test
on: [workflow_dispatch]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install Dependencies
run: |
sudo apt-get update && sudo apt-get -y install cmake make gcc-multilib g++-multilib python3
- name: Configure and Build
run: |
mkdir build
cmake -S . -B build -DLIBMEM_ARCH="i686" -DCMAKE_C_FLAGS="-m32 -fpermissive" -DCMAKE_CXX_FLAGS="-m32 -fpermissive" -DCMAKE_BUILD_TYPE=Debug -DLIBMEM_BUILD_TESTS=ON -DLIBMEM_BUILD_STATIC=ON
cd build
make -j 4
cd ..
- name: Run Unit Tests
run: |
echo "Starting target..."
./build/tests/target &
echo "Starting unit tests..."
sudo ./build/tests/unit arg1 arg2 arg3