ci(build-and-test): updated workflow to work with new mk script
This commit is contained in:
26
.github/workflows/build-and-test.yml
vendored
26
.github/workflows/build-and-test.yml
vendored
@@ -7,24 +7,34 @@ on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build-and-test:
|
||||
build-and-test-ubuntu:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
os: [ubuntu-24.04]
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
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
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y cmake build-essential meson ninja-build python3 python3-pip libgtest-dev
|
||||
pip install meson==1.6.0
|
||||
# Compile gtest manually for Ubuntu
|
||||
cd /usr/src/googletest/googletest && sudo cmake . && sudo make && sudo cp lib/*.a /usr/lib
|
||||
sudo apt-get install -y python3 python3-pip
|
||||
|
||||
- name: Install Dependencies and Build
|
||||
run: |
|
||||
yes | ./mk
|
||||
|
||||
- name: Run build and tests
|
||||
run: ./mk
|
||||
- name: Run Tests
|
||||
run: |
|
||||
source ~/.4DSSE_env/bin/activate
|
||||
meson test -C build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user