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:
Stephen Gutekanst 2022-02-27 19:29:56 -07:00
parent 262422edde
commit 028b7d8034
5 changed files with 69 additions and 24 deletions

View 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('.')))