gpu-dawn: CI: upload headers.json + tarball
Fixes hexops/mach#171 Helps hexops/mach#109 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
262422edde
commit
028b7d8034
5 changed files with 69 additions and 24 deletions
12
gpu-dawn/dev/dir_to_json.py
Normal file
12
gpu-dawn/dev/dir_to_json.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import os
|
||||
import json
|
||||
|
||||
def dir_to_dict(d):
|
||||
dict = {}
|
||||
for dirpath,_,filenames in os.walk(d):
|
||||
for f in filenames:
|
||||
path = os.path.join(dirpath, f)
|
||||
dict[path] = open(path, 'r').read()
|
||||
return dict
|
||||
|
||||
print(json.dumps(dir_to_dict('.')))
|
||||
Loading…
Add table
Add a link
Reference in a new issue