Optimize CI pipeline by bundling setup steps

Streamlined the setup process in the GitHub Actions workflow by
combining system updates and package installations into a single step.
Removed the action for setting up CMake, instead directly installing it
along with build requirements, reducing redundancy and improving build
times. These adjustments enhance the efficiency of the continuous
integration process.
This commit is contained in:
Kumi 2024-02-09 12:47:35 +01:00
parent a6b8a3fd67
commit b00b2f08e3
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -12,6 +12,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up build requirements
run: sudo apt-get update -y && sudo apt-get install -y cmake g++
- name: Install LimeSuite dependencies - name: Install LimeSuite dependencies
run: sudo apt-get update -y && sudo apt-get install -y limesuite liblimesuite-dev run: sudo apt-get update -y && sudo apt-get install -y limesuite liblimesuite-dev
@ -21,11 +24,6 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set up CMake
uses: actions/setup-cmake@v1
with:
cmake-version: '3.28.1'
- name: Build - name: Build
run: cmake -S . -B build && cmake --build build run: cmake -S . -B build && cmake --build build