Skip to content

Commit

Permalink
Cache apt packets in compile CI
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanCostea committed Nov 29, 2024
1 parent 2dfb614 commit 30bc924
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/compile-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,41 @@ jobs:
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
# Step 1: Cache apt package archives
- name: Cache apt archives
uses: actions/cache@v3
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-${{ hashFiles('CMakeLists.txt') }}
restore-keys: |
${{ runner.os }}-apt-
# Step 2: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3

# Step 2: Set up CMake
# Step 3: Set up CMake
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v1
with:
cmake-version: "3.26"

# Step 3: Install dependencies (e.g., build tools)
# Step 4: Install dependencies (e.g., build tools)
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y g++ make
sudo apt install pybind11-dev
sudo apt-get install libboost-all-dev
# Step 4: Configure the project with CMake
# Step 5: Configure the project with CMake
- name: Configure with CMake
run: |
mkdir build
cd build
cmake ..
# Step 5: Build the project
# Step 6: Build the project
- name: Build the project
run: |
cd build
Expand Down

0 comments on commit 30bc924

Please sign in to comment.