Skip to content

Commit b6ef184

Browse files
Update make_and_test.yml
1 parent 1a6dc29 commit b6ef184

1 file changed

Lines changed: 9 additions & 17 deletions

File tree

.github/workflows/make_and_test.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,26 @@ name: make and test
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [ master ]
66
pull_request:
7-
branches: [master]
7+
branches: [ master ]
88

99
jobs:
1010
build:
11+
1112
runs-on: ubuntu-latest
1213

1314
steps:
14-
- name: Checkout repository
15-
uses: actions/checkout@v2
15+
- uses: actions/checkout@v2
1616

17-
- name: Cache dependencies (if applicable)
17+
- name: Cache lib
1818
uses: actions/cache@v2
1919
with:
2020
path: |
2121
~/lib
22-
key: ${{ runner.os }}-lib-${{ hashFiles('**/Makefile') }} # Ensure cache is keyed properly
23-
restore-keys: |
24-
${{ runner.os }}-lib-
25-
26-
- name: Set up dependencies
27-
run: |
28-
sudo apt-get update
29-
sudo apt-get install -y build-essential # Install any required build tools (e.g., gcc, make)
30-
31-
- name: Run make with verbosity for debugging
32-
run: make V=1 # Enables verbose output during the build process
22+
key: ${{ runner.os }}-lib
3323

34-
- name: Run tests
24+
- name: make
25+
run: make -j
26+
- name: test
3527
run: make test

0 commit comments

Comments
 (0)