Archive to latest-dev on dev commits.

This will keep:
https://storage.googleapis.com/r8-releases/raw/latest-dev/r8lib.jar
updated with the latest dev version whenever we have a build.

There should be no problems with release branches as these will not
overwrite this, our dev builds are always increasing in version over
time

Change-Id: I8a0894597b2001f40effc1ef69967a10fd8bfabf
diff --git a/tools/archive.py b/tools/archive.py
index d9f8335..903caf6 100755
--- a/tools/archive.py
+++ b/tools/archive.py
@@ -332,6 +332,16 @@
                     print('Maven repo root available at: %s' %
                           GetMavenUrl(is_main))
 
+            # Upload R8LIB to latest on dev channel, this is used by godbolt.
+            if file == utils.R8LIB_JAR and 'dev' in version:
+                latest_dst = GetUploadDestination('latest-dev', file_name,
+                                                  is_main)
+                print('Uploading %s to %s' % (tagged_jar, latest_dst))
+                if options.dry_run:
+                    print('Dry run, not actually uploading')
+                else:
+                    utils.upload_file_to_cloud_storage(tagged_jar, latest_dst)
+
             # Upload desugar_jdk_libs configuration to a maven compatible location.
             if file == utils.DESUGAR_CONFIGURATION:
                 jar_basename = 'desugar_jdk_libs_configuration.jar'