ci(build-and-test): updated workflow to work with new mk script

This commit is contained in:
2025-03-26 09:35:06 -04:00
parent edd4c04c64
commit 9395b52089

View File

@@ -7,24 +7,34 @@ on:
pull_request: pull_request:
jobs: jobs:
build-and-test: build-and-test-ubuntu:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-24.04]
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set GCC 13 as default
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 --slave /usr/bin/g++ g++ /usr/bin/g++-13
- name: Verify GCC Version
run: gcc --version # Should output 13.x if alternatives were updated, or check gcc-13 --version
- name: Set up dependencies - name: Set up dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y cmake build-essential meson ninja-build python3 python3-pip libgtest-dev sudo apt-get install -y python3 python3-pip
pip install meson==1.6.0
# Compile gtest manually for Ubuntu - name: Install Dependencies and Build
cd /usr/src/googletest/googletest && sudo cmake . && sudo make && sudo cp lib/*.a /usr/lib run: |
yes | ./mk
- name: Run build and tests - name: Run Tests
run: ./mk run: |
source ~/.4DSSE_env/bin/activate
meson test -C build