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
74 changes: 0 additions & 74 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

63 changes: 33 additions & 30 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 14 + Xcode 15.4
- name: "macOS 14 + Xcode 15.4"
os: macos-14
# macOS 26.3 + Xcode 26.3
- name: "macOS 26.3 + Xcode 26.3"
os: macos-26
compiler: xcode
version: "15.4"
# macOS 14 + Xcode 15.0.1
- name: "macOS 14 + Xcode 15.0.1"
os: macos-14
version: "26.3"
# macOS 15.7.4 + Xcode 16.4
- name: "macOS 15.7.4 + Xcode 16.4"
os: macos-15
compiler: xcode
version: "15.0.1"
# macOS 14 + gcc-13
# - name: "macOS 14 + gcc-13"
# os: macos-14
# compiler: gcc
# version: "13"
# macOS 14 + gcc-12
- name: "macOS 14 + gcc-12"
os: macos-14
version: "16.4"
# macOS 26.3 + gcc-15
- name: "macOS 26.3 + gcc-15"
os: macos-26
compiler: gcc
version: "15"
# macOS 26.3 + gcc-14
- name: "macOS 26.3 + gcc-14"
os: macos-26
compiler: gcc
version: "12"
# macOS 14 + gcc-11
- name: "macOS 14 + gcc-11"
os: macos-14
version: "14"
# macOS 26.3 + gcc-13
- name: "macOS 26.3 + gcc-13"
os: macos-26
compiler: gcc
version: "11"
version: "13"

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

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
with:
submodules: true
# NOTE: Linker ICEs with Xcode 15.0.1 (default version on macos-14)
# Remove this step if the default gets changed to 15.1 in actions/runner-images.
- name: Switch to Xcode v15.1
if: matrix.compiler == 'gcc'
run: sudo xcode-select -switch /Applications/Xcode_15.1.app
- 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/RosettaStone/RosettaStone/build/bin/UnitTests
- name: Run Python Test
run: |
pip3 install -r requirements.txt --break-system-packages
pip3 install . --break-system-packages
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/
24 changes: 0 additions & 24 deletions .github/workflows/semgrep.yml

This file was deleted.

31 changes: 24 additions & 7 deletions .github/workflows/ubuntu-codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@ 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
Expand All @@ -24,6 +27,10 @@ jobs:
- uses: actions/checkout@v4
with:
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,7 +48,17 @@ jobs:
run: cd build && make
- name: Run Unit Test
run: /home/runner/work/RosettaStone/RosettaStone/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 Reports to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
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
60 changes: 30 additions & 30 deletions .github/workflows/ubuntu-sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
name: Static Analysis
# name: Static Analysis

on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened ]
# on:
# push:
# branches: [ main ]
# pull_request:
# types: [ opened, synchronize, reopened ]

jobs:
build:
name: 🌞 Static Analysis - SonarCloud
runs-on: ubuntu-latest
env:
BUILD_WRAPPER_OUT_DIR: bw-output # Directory where build-wrapper output will be placed
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
submodules: true
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2
- name: Configure Build
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SONARCLOUD=ON ..
- name: Run build-wrapper
run: |
cd build && build-wrapper-linux-x86-64 --out-dir ../${{ env.BUILD_WRAPPER_OUT_DIR }} make all
- name: Run sonar-scanner
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
sonar-scanner --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
# jobs:
# build:
# name: 🌞 Static Analysis - SonarCloud
# runs-on: ubuntu-latest
# env:
# BUILD_WRAPPER_OUT_DIR: bw-output # Directory where build-wrapper output will be placed
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
# submodules: true
# - name: Install sonar-scanner and build-wrapper
# uses: SonarSource/sonarcloud-github-c-cpp@v2
# - name: Configure Build
# run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_SONARCLOUD=ON ..
# - name: Run build-wrapper
# run: |
# cd build && build-wrapper-linux-x86-64 --out-dir ../${{ env.BUILD_WRAPPER_OUT_DIR }} make all
# - name: Run sonar-scanner
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# run: |
# sonar-scanner --define sonar.cfamily.compile-commands="${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"
Loading
Loading