Skip to content

Commit 98df4de

Browse files
authored
Simplify CI workflow by removing working-directory
Removed working-directory lines to run commands in the root.
1 parent d23dc94 commit 98df4de

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

.github/workflows/c-cpp.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,15 @@
1-
name: C/C++ CI
2-
3-
on:
4-
push:
5-
branches: [ "main" ]
6-
pull_request:
7-
branches: [ "main" ]
8-
9-
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
131
steps:
142
- name: Checkout code
153
uses: actions/checkout@v4
164

175
- name: Run configure
18-
# Fixed the typo here: "dynamic" instead of "dynami"
19-
working-directory: ./dynamic-array
6+
# Removed the working-directory line so it stays in the root
207
run: |
21-
# Ensure the script is executable just in case
228
chmod +x ./configure
239
./configure
2410
2511
- name: make
26-
working-directory: ./dynamic-array
2712
run: make
2813

2914
- name: make check
30-
working-directory: ./dynamic-array
3115
run: make check
32-
33-
- name: make distcheck
34-
working-directory: ./dynamic-array
35-
run: make distcheck

0 commit comments

Comments
 (0)