Skip to content

Commit eea4eaf

Browse files
authored
Fixing running unit tests (They never ran)
1 parent 45b59fd commit eea4eaf

File tree

1 file changed

+56
-24
lines changed

1 file changed

+56
-24
lines changed

.github/workflows/main.yml

Lines changed: 56 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,13 @@ jobs:
9191
with:
9292
name: cconvscripts
9393
path: ${{github.workspace}}/depsfolder/checkedc-clang/clang/tools/cconv-standalone/utils
94+
95+
# Upload Test files
96+
- name: Upload Test files
97+
uses: actions/upload-artifact@v2
98+
with:
99+
name: cconvtests
100+
path: ${{github.workspace}}/depsfolder/checkedc-clang/clang/test
94101

95102

96103
unittests:
@@ -109,6 +116,13 @@ jobs:
109116
with:
110117
name: cconvbuild
111118
path: ${{runner.workspace}}/${{env.builddir}}
119+
120+
# Download test files
121+
- name: Download test files
122+
uses: actions/download-artifact@v2
123+
with:
124+
name: cconvtests
125+
path: ${{github.workspace}}/depsfolder/checkedc-clang/clang/test
112126

113127
- name: Clone checked c headers
114128
uses: actions/checkout@v2
@@ -138,10 +152,13 @@ jobs:
138152
# clone and install bear
139153
# Needed for generating compile_commands.json
140154
- name: Clone Bear
141-
uses: actions/checkout@v2
142-
with:
143-
repository: rizsotto/Bear
144-
path: depsfolder/bear
155+
run: |
156+
mkdir -p ${{github.workspace}}/depsfolder
157+
cd ${{github.workspace}}/depsfolder
158+
git clone https://github.com/rizsotto/Bear.git bear
159+
cd bear
160+
git pull
161+
git checkout -f 75ff7f561652509ec9b34095881fdb6c4a56c9e0
145162
- name: Install Bear
146163
run: |
147164
mkdir -p ${{runner.workspace}}/depsfolder/bear
@@ -203,10 +220,13 @@ jobs:
203220
# clone and install bear
204221
# Needed for generating compile_commands.json
205222
- name: Clone Bear
206-
uses: actions/checkout@v2
207-
with:
208-
repository: rizsotto/Bear
209-
path: depsfolder/bear
223+
run: |
224+
mkdir -p ${{github.workspace}}/depsfolder
225+
cd ${{github.workspace}}/depsfolder
226+
git clone https://github.com/rizsotto/Bear.git bear
227+
cd bear
228+
git pull
229+
git checkout -f 75ff7f561652509ec9b34095881fdb6c4a56c9e0
210230
- name: Install Bear
211231
run: |
212232
mkdir -p ${{runner.workspace}}/depsfolder/bear
@@ -291,10 +311,13 @@ jobs:
291311
# clone and install bear
292312
# Needed for generating compile_commands.json
293313
- name: Clone Bear
294-
uses: actions/checkout@v2
295-
with:
296-
repository: rizsotto/Bear
297-
path: depsfolder/bear
314+
run: |
315+
mkdir -p ${{github.workspace}}/depsfolder
316+
cd ${{github.workspace}}/depsfolder
317+
git clone https://github.com/rizsotto/Bear.git bear
318+
cd bear
319+
git pull
320+
git checkout -f 75ff7f561652509ec9b34095881fdb6c4a56c9e0
298321
- name: Install Bear
299322
run: |
300323
mkdir -p ${{runner.workspace}}/depsfolder/bear
@@ -359,10 +382,13 @@ jobs:
359382
# clone and install bear
360383
# Needed for generating compile_commands.json
361384
- name: Clone Bear
362-
uses: actions/checkout@v2
363-
with:
364-
repository: rizsotto/Bear
365-
path: depsfolder/bear
385+
run: |
386+
mkdir -p ${{github.workspace}}/depsfolder
387+
cd ${{github.workspace}}/depsfolder
388+
git clone https://github.com/rizsotto/Bear.git bear
389+
cd bear
390+
git pull
391+
git checkout -f 75ff7f561652509ec9b34095881fdb6c4a56c9e0
366392
- name: Install Bear
367393
run: |
368394
mkdir -p ${{runner.workspace}}/depsfolder/bear
@@ -426,10 +452,13 @@ jobs:
426452
# clone and install bear
427453
# Needed for generating compile_commands.json
428454
- name: Clone Bear
429-
uses: actions/checkout@v2
430-
with:
431-
repository: rizsotto/Bear
432-
path: depsfolder/bear
455+
run: |
456+
mkdir -p ${{github.workspace}}/depsfolder
457+
cd ${{github.workspace}}/depsfolder
458+
git clone https://github.com/rizsotto/Bear.git bear
459+
cd bear
460+
git pull
461+
git checkout -f 75ff7f561652509ec9b34095881fdb6c4a56c9e0
433462
- name: Install Bear
434463
run: |
435464
mkdir -p ${{runner.workspace}}/depsfolder/bear
@@ -494,10 +523,13 @@ jobs:
494523
# clone and install bear
495524
# Needed for generating compile_commands.json
496525
- name: Clone Bear
497-
uses: actions/checkout@v2
498-
with:
499-
repository: rizsotto/Bear
500-
path: depsfolder/bear
526+
run: |
527+
mkdir -p ${{github.workspace}}/depsfolder
528+
cd ${{github.workspace}}/depsfolder
529+
git clone https://github.com/rizsotto/Bear.git bear
530+
cd bear
531+
git pull
532+
git checkout -f 75ff7f561652509ec9b34095881fdb6c4a56c9e0
501533
- name: Install Bear
502534
run: |
503535
mkdir -p ${{runner.workspace}}/depsfolder/bear

0 commit comments

Comments
 (0)