Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read platform list from file #2

Open
wants to merge 3 commits into
base: plumbing
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 2 additions & 29 deletions build-vanagon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,7 @@

# USAGE: ./build-vanagon.rb <vanagon project name> <folder name> <version> <number of threads>

PLATFORM_LIST = [
'amazon-2-aarch64',
'amazon-2023-aarch64',
'amazon-2023-x86_64',
'debian-10-amd64',
'debian-11-aarch64',
'debian-11-amd64',
'debian-12-aarch64',
'debian-12-amd64',
'el-7-x86_64',
'el-8-aarch64',
'el-8-x86_64',
'el-8-ppc64le',
'el-9-aarch64',
'el-9-x86_64',
'el-9-ppc64le',
'fedora-36-x86_64',
'fedora-40-x86_64',
'sles-15-x86_64',
'ubuntu-18.04-aarch64',
'ubuntu-18.04-amd64',
'ubuntu-20.04-aarch64',
'ubuntu-20.04-amd64',
'ubuntu-22.04-aarch64',
'ubuntu-22.04-amd64',
'ubuntu-24.04-aarch64',
'ubuntu-24.04-amd64',
]
PLATFORM_LIST = File.readlines('platforms.txt', chomp: true).reject { |line| line.start_with?('#') }

@project = ARGV[0] # Name of project in vanagon
@repo = ARGV[1] # Name of folder/repo
Expand Down Expand Up @@ -156,4 +129,4 @@ def run(thread_id, dir, command)
puts "Failed platforms:"
puts @failed_platforms.join("\n")
end
puts "Total time: #{Time.now - start}"
puts "Total time: #{Time.now - start}"
26 changes: 26 additions & 0 deletions platforms.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
amazon-2-aarch64
amazon-2023-aarch64
amazon-2023-x86_64
debian-10-amd64
debian-11-aarch64
debian-11-amd64
debian-12-aarch64
debian-12-amd64
el-7-x86_64
el-8-aarch64
el-8-x86_64
el-8-ppc64le
el-9-aarch64
el-9-x86_64
el-9-ppc64le
fedora-36-x86_64
fedora-40-x86_64
sles-15-x86_64
ubuntu-18.04-aarch64
ubuntu-18.04-amd64
ubuntu-20.04-aarch64
ubuntu-20.04-amd64
ubuntu-22.04-aarch64
ubuntu-22.04-amd64
ubuntu-24.04-aarch64
ubuntu-24.04-amd64