Skip to content
Snippets Groups Projects
Verified Commit ba52be71 authored by boklm's avatar boklm Committed by Pier Angelo Vendrame
Browse files

Bug 41448: Check for more toolchain updates

parent 23f1ab0d
Branches
Tags
1 merge request!1212Bug 41448: Desktop toolchain update
......@@ -58,6 +58,9 @@ var:
l10n-changesets: '[% exec("git --no-pager show " _ c("git_hash") _ ":browser/locales/l10n-changesets.json", { exec_noco => 1 }) %]'
windows_rs_version: '0.58.0'
windows_rs_sha256sum: dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6
steps:
src-tarballs:
filename: 'src-[% project %]-[% c("version") %].tar.xz'
......@@ -220,10 +223,10 @@ input_files:
enable: '[% c("var/windows") %]'
target_prepend:
- torbrowser-windows-x86_64
- URL: https://crates.io/api/v1/crates/windows/0.58.0/download
- URL: 'https://crates.io/api/v1/crates/windows/[% c("var/windows_rs_version") %]/download'
name: windows-rs
filename: windows-rs-0.58.0.tar.zst
sha256sum: dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6
filename: 'windows-rs-[% c("var/windows_rs_version") %].tar.zst'
sha256sum: '[% c("var/windows_rs_sha256sum") %]'
enable: '[% c("var/windows") %]'
- filename: abicheck.cc
enable: '[% c("var/linux") %]'
......
......@@ -2,6 +2,30 @@
[% INCLUDE 'list_toolchain_updates-common-firefox-geckoview' %]
[% IF c("var/linux") %]
read -d '' p << 'EOF' || true
my $d = YAML::XS::LoadFile('taskcluster/kinds/toolchain/misc.yml');
my $fetches = $d->{'linux64-binutils'}{fetches}{fetch};
if (ref $fetches ne 'ARRAY') {
print STDERR "linux64-binutils/fetches/fetch is not an array\\n";
exit 1;
}
foreach my $fetch (@$fetches) {
if ($fetch =~ m/^binutils-(.+)$/) {
print $1;
exit 0;
}
}
print STDERR "binutils not found in fetches\\n";
exit 1
EOF
needed=$(perl -MYAML::XS -e "$p")
current='[% pc("binutils", "version") %]'
check_update_needed binutils "$needed" "$current"
# End of Linux checks
[% END -%]
[% IF c("var/macos") %]
# macosx-sdk
read -d '' p << 'EOF' || true
......@@ -71,6 +95,30 @@ needed=$(perl -MYAML::XS -e "$p")
current='[% pc("fxc2", "git_hash") %]'
check_update_needed fxc2 "$needed" "$current"
read -d '' p << 'EOF' || true
my $d = YAML::XS::LoadFile('taskcluster/kinds/fetch/toolchains.yml');
my $url = $d->{'windows-rs'}{fetch}{url};
if ($url =~ m|crates/windows/(.+)/download$|) {
print $1;
exit 0;
}
print STDERR "windows-rs url not found ($url)\\n";
exit 1
EOF
needed=$(perl -MYAML::XS -e "$p")
current='[% c("var/windows_rs_version") %]'
check_update_needed windows-rs "$needed" "$current"
read -d '' p << 'EOF' || true
my $d = YAML::XS::LoadFile('taskcluster/kinds/fetch/toolchains.yml');
my $sha256 = $d->{'windows-rs'}{fetch}{sha256};
exit 1 unless $sha256;
print $sha256;
EOF
needed=$(perl -MYAML::XS -e "$p")
current='[% c("var/windows_rs_sha256sum") %]'
check_update_needed windows-rs-sha256sum "$needed" "$current"
# End of Windows checks
[% END -%]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment