Skip to content

Merge pull request #120 from utilForever/dependabot/pip/setuptools-84… #185

Merge pull request #120 from utilForever/dependabot/pip/setuptools-84…

Merge pull request #120 from utilForever/dependabot/pip/setuptools-84… #185

Workflow file for this run

name: Ubuntu
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
PYTHON_VERSION: '3.12'
CMAKE_TOOLCHAIN_FILE: ${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
jobs:
build-ubuntu:
strategy:
matrix:
include:
# Ubuntu 24.04 + gcc-14
- name: "Ubuntu 24.04 + gcc-14"
os: ubuntu-24.04
compiler: gcc
version: "14"
# Ubuntu 24.04 + gcc-13
- name: "Ubuntu 24.04 + gcc-13"
os: ubuntu-24.04
compiler: gcc
version: "13"
# Ubuntu 24.04 + gcc-12
- name: "Ubuntu 24.04 + gcc-12"
os: ubuntu-24.04
compiler: gcc
version: "12"
# Ubuntu 24.04 + clang-18
- name: "Ubuntu 24.04 + clang-18"
os: ubuntu-24.04
compiler: clang
version: "18"
# Ubuntu 24.04 + clang-17
- name: "Ubuntu 24.04 + clang-17"
os: ubuntu-24.04
compiler: clang
version: "17"
# Ubuntu 24.04 + clang-16
- name: "Ubuntu 24.04 + clang-16"
os: ubuntu-24.04
compiler: clang
version: "16"
runs-on: ${{ matrix.os }}
name: 🐧 Build - ${{ matrix.name }}
steps:
- uses: actions/checkout@v7
- name: Setup Python
uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -yq autoconf autoconf-archive automake libtool python3-setuptools
- name: Configure Compiler
run: |
if [ "${{ matrix.compiler }}" = "gcc" ]; then
echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
else
echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV
echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV
fi
- name: Configure Build
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release ..
- name: Build
run: cd build && make
- name: Run Unit Test
run: /home/runner/work/baba-is-auto/baba-is-auto/build/bin/UnitTests
- name: Run Python Test
run: |
python -m pip install --require-hashes -r requirements.txt
python setup.py build_ext --inplace
python -m pytest Tests/PythonTests/