Merge Official Source
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
from os import getenv, environ
|
||||
from pathlib import Path
|
||||
from subprocess import run, PIPE
|
||||
from subprocess import run, PIPE, DEVNULL
|
||||
from sys import argv
|
||||
import json
|
||||
import re
|
||||
@@ -92,6 +92,15 @@ if output:
|
||||
"vermagic": linux_vermagic,
|
||||
}
|
||||
|
||||
git_commit = run(
|
||||
["git", "rev-parse", "HEAD"],
|
||||
stdout=PIPE,
|
||||
stderr=DEVNULL,
|
||||
universal_newlines=True,
|
||||
)
|
||||
if git_commit.returncode == 0:
|
||||
output["git_commit"] = git_commit.stdout.strip()
|
||||
|
||||
for artifact in "imagebuilder", "sdk", "toolchain":
|
||||
filename = add_artifact(artifact)
|
||||
add_artifact("llvm-bpf", prefix="")
|
||||
|
||||
Reference in New Issue
Block a user