Skip to content

Commit 286298d

Browse files
committed
Fixing CI
1 parent 4055d65 commit 286298d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/c.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
- name: configure
1717
run: wget https://ocw.mit.edu/ans7870/6/6.006/s08/lecturenotes/files/t8.shakespeare.txt
1818
- name: build c
19-
run: make run
19+
run: cc -Wall -Wextra -ggdb -pedantic -o bit ./main.c && ./bit ./t8.shakespeare.txt
20+
2021
- name: build c++
21-
run: make runCpp
22+
run: g++ -Wall -Wextra -ggdb -pedantic -o hashcpp ./hash.cpp && ./hashcpp ./t8.shakespeare.txt
23+
2224

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int main(int argc, char **argv) {
7878
if (!content)
7979
return 1;
8080
void *table = malloc(TABLE_SIZE * sizeof(token_t));
81-
void *naive_table = malloc(TABLE_SIZE * sizeof(token_t));
81+
// void *naive_table = malloc(TABLE_SIZE * sizeof(token_t));
8282
hash_table hash_table_impl = {
8383
.table = table,
8484
.capacity = TABLE_SIZE,

0 commit comments

Comments
 (0)