This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
Merge pull request #496 from smithed/patch-1 #405
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: CI tests (32-bit) | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-22.04 | |
container: | |
image: ubuntu:22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dependencies | |
run: | | |
dpkg --add-architecture i386 | |
apt-get update -qq | |
apt-get install -qq git build-essential python3 python-is-python3 gcc liblz4-dev:i386 libuv1-dev:i386 gcc-multilib | |
- name: Build | |
run: | | |
git clone --depth 1 https://github.com/edlund/amalgamate.git | |
amalgamate/amalgamate.py --config=amalgamation.json --source=$(pwd) | |
gcc -std=gnu11 raft.c -m32 -shared -fPIC -o libraft.so -DHAVE_LINUX_AIO_ABI_H -DLZ4_AVAILABLE -DLZ4_ENABLED -Wall -Wextra -Wpedantic -Werror -luv -llz4 | |
ldd libraft.so |