Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions .github/workflows/.semgrep.yml

This file was deleted.

74 changes: 0 additions & 74 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

61 changes: 32 additions & 29 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,51 @@ on:
pull_request:
branches: [ main ]

env:
PYTHON_VERSION: '3.12'

jobs:
build-macos:
strategy:
matrix:
include:
# macOS 12.6.5 + Xcode 14.2
- name: "macOS 12.6.5 + Xcode 14.2"
os: macos-12
compiler: xcode
version: "14.2"
# macOS 12.6.5 + Xcode 13.4.1
- name: "macOS 12.6.5 + Xcode 13.4.1"
os: macos-12
# macOS 26.3 + Xcode 26.3
- name: "macOS 26.3 + Xcode 26.3"
os: macos-26
compiler: xcode
version: "13.4.1"
# macOS 11.7.6 + Xcode 12.5.1
- name: "macOS 11.7.6 + Xcode 12.5.1"
os: macos-11
version: "26.3"
Comment thread
utilForever marked this conversation as resolved.
# macOS 15.7.4 + Xcode 16.4
- name: "macOS 15.7.4 + Xcode 16.4"
os: macos-15
compiler: xcode
version: "12.5.1"
# macOS 12.6.5 + gcc-12
- name: "macOS 12.6.5 + gcc-12"
os: macos-12
version: "16.4"
# macOS 26.3 + gcc-15
- name: "macOS 26.3 + gcc-15"
os: macos-26
compiler: gcc
version: "12"
# macOS 12.6.5 + gcc-11
- name: "macOS 12.6.5 + gcc-11"
os: macos-12
version: "15"
Comment thread
utilForever marked this conversation as resolved.
# macOS 26.3 + gcc-14
- name: "macOS 26.3 + gcc-14"
os: macos-26
compiler: gcc
version: "11"
# macOS 11.7.6 + gcc-10
- name: "macOS 11.7.6 + gcc-10"
os: macos-11
version: "14"
# macOS 26.3 + gcc-13
- name: "macOS 26.3 + gcc-13"
os: macos-26
compiler: gcc
version: "10"
version: "13"

runs-on: ${{ matrix.os }}
name: 🍎 Build - ${{ matrix.name }}

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Configure Compiler
run: |
if [ "${{ matrix.compiler }}" = "gcc" ]; then
Expand All @@ -68,6 +70,7 @@ jobs:
run: /Users/runner/work/baba-is-auto/baba-is-auto/build/bin/UnitTests
- name: Run Python Test
run: |
pip3 install -r requirements.txt
pip3 install .
python3 -m pytest Tests/PythonTests/
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install .
python -m pytest Tests/PythonTests/
23 changes: 0 additions & 23 deletions .github/workflows/semgrep.yml

This file was deleted.

32 changes: 26 additions & 6 deletions .github/workflows/ubuntu-codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,32 @@ on:
pull_request:
branches: [ main ]

env:
PYTHON_VERSION: '3.12'

jobs:
build-ubuntu:
strategy:
matrix:
include:
# Ubuntu 22.04 + gcc-12
- name: "Ubuntu 22.04 + gcc-12"
os: ubuntu-22.04
# Ubuntu 24.04 + gcc-14
- name: "Ubuntu 24.04 + gcc-14"
os: ubuntu-24.04
compiler: gcc
version: "12"
version: "14"

runs-on: ${{ matrix.os }}
name: 🧪 Code Coverage - Codecov

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install packages
run: sudo apt-get install -yq lcov
- name: Configure Compiler
Expand All @@ -41,5 +49,17 @@ jobs:
run: cd build && make
- name: Run Unit Test
run: /home/runner/work/baba-is-auto/baba-is-auto/build/bin/UnitTests
- name: Collect coverage report
run: |
GCOV_TOOL="$(command -v gcov-${{ matrix.version }})"
lcov --gcov-tool "${GCOV_TOOL}" --directory build --capture --output-file build/coverage.info
lcov --ignore-errors unused --gcov-tool "${GCOV_TOOL}" --remove build/coverage.info '/usr/*' '*/Tests/*' --output-file build/coverage.info.cleaned
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: true
files: ./build/coverage.info.cleaned
flags: unittests
name: ubuntu-codecov
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
Comment thread
utilForever marked this conversation as resolved.
126 changes: 63 additions & 63 deletions .github/workflows/ubuntu-sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
name: Static Analysis
# name: Static Analysis

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# on:
# push:
# branches: [ main ]
# pull_request:
# branches: [ main ]

jobs:
build-ubuntu:
runs-on: ${{ matrix.os }}
name: 🌞 Static Analysis - SonarCloud
strategy:
matrix:
include:
# Ubuntu 20.04 + gcc-10
- name: "Ubuntu 20.04 + gcc-10"
os: ubuntu-20.04
compiler: gcc
version: "10"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Prepare Sonar scanner
run: |
wget -nv https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip
unzip -q sonar-scanner-cli-4.7.0.2747-linux.zip
echo "${PWD}/sonar-scanner-4.7.0.2747-linux/bin/" >> $GITHUB_PATH
wget -nv https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
unzip -q build-wrapper-linux-x86.zip
echo "${PWD}/build-wrapper-linux-x86" >> $GITHUB_PATH
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -yq gcovr ggcov lcov curl
- 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=Debug -DBUILD_COVERAGE=ON -DBUILD_SONARCLOUD=ON ..
- name: Build
run: cd build && build-wrapper-linux-x86-64 --out-dir ../bw-output make all
- name: Run Unit Test
run: |
cd build
lcov --gcov-tool /usr/bin/gcov -c -i -d Tests/UnitTests -o base.info
bin/UnitTests
lcov --gcov-tool /usr/bin/gcov -c -d Tests/UnitTests -o test.info
lcov --gcov-tool /usr/bin/gcov -a base.info -a test.info -o coverage.info
lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Extensions/*' -o coverage.info
lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Includes/*' -o coverage.info
lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Libraries/*' -o coverage.info
lcov --gcov-tool /usr/bin/gcov -l coverage.info
- name: SonarCloud Scan
run: sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=utilforever-github -Dsonar.login=$SONAR_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# jobs:
Comment thread
utilForever marked this conversation as resolved.
# build-ubuntu:
# runs-on: ${{ matrix.os }}
# name: 🌞 Static Analysis - SonarCloud
# strategy:
# matrix:
# include:
# # Ubuntu 20.04 + gcc-10
# - name: "Ubuntu 20.04 + gcc-10"
# os: ubuntu-20.04
# compiler: gcc
# version: "10"
# steps:
# - uses: actions/checkout@v2
# with:
# submodules: true
# - name: Prepare Sonar scanner
# run: |
# wget -nv https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.7.0.2747-linux.zip
# unzip -q sonar-scanner-cli-4.7.0.2747-linux.zip
# echo "${PWD}/sonar-scanner-4.7.0.2747-linux/bin/" >> $GITHUB_PATH
# wget -nv https://sonarcloud.io/static/cpp/build-wrapper-linux-x86.zip
# unzip -q build-wrapper-linux-x86.zip
# echo "${PWD}/build-wrapper-linux-x86" >> $GITHUB_PATH
# - name: Install packages
# run: |
# sudo apt-get update
# sudo apt-get install -yq gcovr ggcov lcov curl
# - 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=Debug -DBUILD_COVERAGE=ON -DBUILD_SONARCLOUD=ON ..
# - name: Build
# run: cd build && build-wrapper-linux-x86-64 --out-dir ../bw-output make all
# - name: Run Unit Test
# run: |
# cd build
# lcov --gcov-tool /usr/bin/gcov -c -i -d Tests/UnitTests -o base.info
# bin/UnitTests
# lcov --gcov-tool /usr/bin/gcov -c -d Tests/UnitTests -o test.info
# lcov --gcov-tool /usr/bin/gcov -a base.info -a test.info -o coverage.info
# lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Extensions/*' -o coverage.info
# lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Includes/*' -o coverage.info
# lcov --gcov-tool /usr/bin/gcov -r coverage.info '*/Libraries/*' -o coverage.info
# lcov --gcov-tool /usr/bin/gcov -l coverage.info
# - name: SonarCloud Scan
# run: sonar-scanner -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=utilforever-github -Dsonar.login=$SONAR_TOKEN
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Loading
Loading