On Wed, Dec 30, 2020 at 05:46:45PM +0800, Lin Jiaxin wrote:
Signed-off-by: Lin Jiaxin ljx.joe@qq.com
jobs/build-linux.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/jobs/build-linux.yaml b/jobs/build-linux.yaml index 080a84b3..1ced05ad 100644 --- a/jobs/build-linux.yaml +++ b/jobs/build-linux.yaml @@ -1,4 +1,7 @@ suite: build-pkg category: functional build-pkg: -config: <%= 'aarch64-randconfig-'+SecureRandom.random_number(1000).to_s %> +config: <%=
today = Time.new
To be exact, Time.new is "now" not "today". This looks a bit more reasonable:
today = Time.new.strftime('%Y-%m-%d') Array.new(100) { |i| "aarch64-randconfig-#{today}-" + format('%02d', i) }
In future, "aarch64" should be generalized option 1) use $arch, let outside logic decide/iterate the arch option 2) show all x86_64, aarch64, riscv, etc. supported archs in this job
Thanks, Fengguang