use objects #11
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: C/C++ CI | |
on: | |
push: | |
branches: [ "next" ] | |
pull_request: | |
branches: [ "next" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install cross compile tools | |
run: | | |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - | |
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main" | sudo tee -a /etc/apt/sources.list > /dev/null | |
echo "deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-18 main" | sudo tee -a /etc/apt/sources.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install llvm-18 clang-18 lld-18 libnuma-dev -y | |
- name: install deps | |
run: make install-deps | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: python -m pip install meson=="1.4.0" ninja | |
- name: Configure Project | |
run: meson setup builddir/ | |
env: | |
CC: gcc | |
- name: Run Tests | |
run: meson test -C builddir/ -v | |
- name: Upload Test Log | |
uses: actions/upload-artifact@v4 | |
if: failure() | |
with: | |
name: ubuntu_latest_Meson_Testlog | |
path: builddir/meson-logs/testlog.txt | |
- uses: actions/checkout@v4 | |
- name: install boost | |
run: make install-boost | |
- name: setup | |
run: make setup |