diff --git a/lib/vanagon/platform/defaults/fedora-42-aarch64.rb b/lib/vanagon/platform/defaults/fedora-42-aarch64.rb new file mode 100644 index 00000000..250d61bc --- /dev/null +++ b/lib/vanagon/platform/defaults/fedora-42-aarch64.rb @@ -0,0 +1,39 @@ +platform 'fedora-42-aarch64' do |plat| + plat.servicedir '/usr/lib/systemd/system' + plat.defaultdir '/etc/sysconfig' + plat.servicetype 'systemd' + plat.dist 'fc42' + + packages = %w( + autoconf + automake + binutils + bzip2-devel + cmake + curl + gcc + gcc-c++ + libselinux-devel + libsepol + libsepol-devel + make + perl-lib + perl-FindBin + pkgconfig + readline-devel + rpmdevtools + rsync + swig + systemtap-sdt-devel + systemtap-sdt-dtrace + systemd + which + zlib-devel + ) + plat.provision_with("/usr/bin/dnf install -y --best --allowerasing #{packages.join(' ')}") + + plat.install_build_dependencies_with '/usr/bin/dnf install -y --best --allowerasing' + plat.vmpooler_template 'fedora-42-aarch64' + plat.docker_image "fedora:42" + plat.docker_arch 'linux/arm64' + end diff --git a/lib/vanagon/platform/defaults/fedora-42-x86_64.rb b/lib/vanagon/platform/defaults/fedora-42-x86_64.rb new file mode 100644 index 00000000..a053ebad --- /dev/null +++ b/lib/vanagon/platform/defaults/fedora-42-x86_64.rb @@ -0,0 +1,39 @@ +platform 'fedora-42-x86_64' do |plat| + plat.servicedir '/usr/lib/systemd/system' + plat.defaultdir '/etc/sysconfig' + plat.servicetype 'systemd' + plat.dist 'fc42' + + packages = %w( + autoconf + automake + binutils + bzip2-devel + cmake + curl + gcc + gcc-c++ + libselinux-devel + libsepol + libsepol-devel + make + perl-lib + perl-FindBin + pkgconfig + readline-devel + rpmdevtools + rsync + swig + systemtap-sdt-devel + systemtap-sdt-dtrace + systemd + which + zlib-devel + ) + plat.provision_with("/usr/bin/dnf install -y --best --allowerasing #{packages.join(' ')}") + + plat.install_build_dependencies_with '/usr/bin/dnf install -y --best --allowerasing' + plat.vmpooler_template 'fedora-42-x86_64' + plat.docker_image "fedora:42" + plat.docker_arch 'linux/amd64' + end diff --git a/lib/vanagon/platform/windows.rb b/lib/vanagon/platform/windows.rb index e2211f3e..c11b159e 100644 --- a/lib/vanagon/platform/windows.rb +++ b/lib/vanagon/platform/windows.rb @@ -180,7 +180,7 @@ def generate_nuget_package(project) # rubocop:disable Metrics/AbcSize # # @param project [Vanagon::Project] project to build a msi package of # @return [Array] list of commands required to build an msi package for the given project from a tarball - def generate_msi_package(project) # rubocop:disable Metrics/AbcSize + def generate_msi_package(project) # rubocop:disable Metrics/AbcSize, Metrics/PerceivedComplexity target_dir = project.repo ? output_dir(project.repo) : output_dir wix_extensions = "-ext WiXUtilExtension -ext WixUIExtension" # Heat command documentation at: http://wixtoolset.org/documentation/manual/v3/overview/heat.html