Skip to content

Tests-Ubuntu

Tests-Ubuntu #134

Workflow file for this run

name: Tests-Ubuntu
on:
push:
branches:
- main
pull_request: {}
schedule:
- cron: '0 23 * * SUN-THU'
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
build_type: [Release, Debug]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Upgrade apt
run: |
sudo apt update && sudo apt upgrade
- name: Install llvm
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17 all
rm llvm.sh
- name: Install cmake
run: |
wget -O cmake_install.sh https://github.com/Kitware/CMake/releases/download/v3.28.0/cmake-3.28.0-linux-x86_64.sh
chmod +x cmake_install.sh
sudo ./cmake_install.sh --prefix=/usr/local --skip-license
rm cmake_install.sh
- name: Install ninja
run: |
wget https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip
yes | sudo unzip ninja-linux.zip -d /usr/local/bin
- name: Build ${{ matrix.build_type }}
run: |
cmake -B build -S . -DARGO_TESTS_ENABLE=true -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build build
env:
CC: /usr/bin/clang-17
CXX: /usr/bin/clang++-17
LDFLAGS: -L/usr/lib/llvm-17/lib
CPPFLAGS: -stdlib=libc++
- name: Test ${{ matrix.build_type }}
run: |
cmake --build build --target test