diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index c6b96b583..e75ec38e1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -17,6 +17,7 @@ jobs: cd bin curl -sL https://github.com/odin-lang/Odin/releases/download/llvm-windows/llvm-binaries.zip --output llvm-binaries.zip 7z x llvm-binaries.zip > nul + rm -f llvm-binaries.zip - name: build Odin shell: cmd run: | @@ -29,8 +30,10 @@ jobs: odin run examples/demo/demo.odin - name: Copy artifacts run: | + rm bin/llvm/windows/LLVM-C.lib mkdir dist cp odin.exe dist + cp LLVM-C.dll dist cp -r shared dist cp -r core dist cp -r bin dist @@ -132,4 +135,4 @@ jobs: python3 ci/create_nightly_json.py "$BUCKET" > nightly.json b2 upload-file "$BUCKET" nightly.json nightly.json - b2 clear-account \ No newline at end of file + b2 clear-account diff --git a/ci/create_nightly_json.py b/ci/create_nightly_json.py index 65be4f7af..2fefadd00 100644 --- a/ci/create_nightly_json.py +++ b/ci/create_nightly_json.py @@ -18,6 +18,7 @@ def main(): name = remove_prefix(data['fileName'], "nightly/") url = f"https://f001.backblazeb2.com/file/{bucket}/nightly/{urllib.parse.quote_plus(name)}" sha1 = data['contentSha1'] + size = int(data['contentLength']) ts = int(data['fileInfo']['src_last_modified_millis']) date = datetime.datetime.fromtimestamp(ts/1000).strftime('%Y-%m-%d') @@ -28,6 +29,7 @@ def main(): 'name': name, 'url': url, 'sha1': sha1, + 'sizeInBytes': size, }) now = datetime.datetime.utcnow().isoformat()