From 242531cc4873467bfc318487bb4d79a5ce8351b1 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 21 Aug 2024 10:24:13 +0200 Subject: [PATCH 1/4] Fix artifacts workflow --- .github/workflows/intl4x_artifacts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/intl4x_artifacts.yml b/.github/workflows/intl4x_artifacts.yml index d9975f04..b7614b0a 100644 --- a/.github/workflows/intl4x_artifacts.yml +++ b/.github/workflows/intl4x_artifacts.yml @@ -145,7 +145,7 @@ jobs: - name: Upload artifacts uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b with: - name: dart-${{matrix.os}}-libs + name: dart-${{matrix.os}}-${{ matrix.compiletype }}-libs path: submodules/icu4x/bin check_hashes: From 1ac7d6cdcc00b41996d5b22cfe4d6a54895475ca Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 21 Aug 2024 10:25:40 +0200 Subject: [PATCH 2/4] Run on changes to self --- .github/workflows/intl4x_artifacts.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/intl4x_artifacts.yml b/.github/workflows/intl4x_artifacts.yml index b7614b0a..9347d287 100644 --- a/.github/workflows/intl4x_artifacts.yml +++ b/.github/workflows/intl4x_artifacts.yml @@ -8,6 +8,7 @@ on: branches: [ main ] paths: - pkgs/intl4x/hook/hashes.dart + - .github/workflows/intl4x_artifacts.yml push: tags: - 'intl4x-icu*' From 9f05b2363f4d64c5763b616ef07246a13f374485 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 21 Aug 2024 10:44:35 +0200 Subject: [PATCH 3/4] Fix script name --- .github/workflows/intl4x_artifacts.yml | 2 +- pkgs/intl4x/hook/hashes.dart | 4 ++-- pkgs/intl4x/tool/regenerate_hashes.dart | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/intl4x_artifacts.yml b/.github/workflows/intl4x_artifacts.yml index 9347d287..382a93d4 100644 --- a/.github/workflows/intl4x_artifacts.yml +++ b/.github/workflows/intl4x_artifacts.yml @@ -177,7 +177,7 @@ jobs: run: | cd pkgs/intl4x dart pub get - dart --enable-experiment=native-assets tool/generate_hashes.dart + dart --enable-experiment=native-assets tool/regenerate_hashes.dart git diff --exit-code release: diff --git a/pkgs/intl4x/hook/hashes.dart b/pkgs/intl4x/hook/hashes.dart index 7a8ae99d..3380eab5 100644 --- a/pkgs/intl4x/hook/hashes.dart +++ b/pkgs/intl4x/hook/hashes.dart @@ -2,9 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -// THIS FILE IS AUTOGENERATED BY `tool/generate_hashes.dart`. TO UPDATE, RUN +// THIS FILE IS AUTOGENERATED BY `tool/regenerate_hashes.dart`. TO UPDATE, RUN // -// dart --enable-experiment=native-assets run tool/generate_hashes.dart +// dart --enable-experiment=native-assets run tool/regenerate_hashes.dart // import 'package:native_assets_cli/native_assets_cli.dart'; diff --git a/pkgs/intl4x/tool/regenerate_hashes.dart b/pkgs/intl4x/tool/regenerate_hashes.dart index 4d7ad828..1849b1cc 100644 --- a/pkgs/intl4x/tool/regenerate_hashes.dart +++ b/pkgs/intl4x/tool/regenerate_hashes.dart @@ -34,9 +34,9 @@ Future main(List args) async { // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -// THIS FILE IS AUTOGENERATED BY `tool/generate_hashes.dart`. TO UPDATE, RUN +// THIS FILE IS AUTOGENERATED BY `tool/regenerate_hashes.dart`. TO UPDATE, RUN // -// dart --enable-experiment=native-assets run tool/generate_hashes.dart +// dart --enable-experiment=native-assets run tool/regenerate_hashes.dart // import 'package:native_assets_cli/native_assets_cli.dart'; From 35e6fbe2e9f975227a22c8f6c73fef6ad37894a2 Mon Sep 17 00:00:00 2001 From: Moritz Date: Wed, 21 Aug 2024 10:45:50 +0200 Subject: [PATCH 4/4] Don't run on changes to self --- .github/workflows/intl4x_artifacts.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/intl4x_artifacts.yml b/.github/workflows/intl4x_artifacts.yml index 382a93d4..455f4394 100644 --- a/.github/workflows/intl4x_artifacts.yml +++ b/.github/workflows/intl4x_artifacts.yml @@ -8,7 +8,6 @@ on: branches: [ main ] paths: - pkgs/intl4x/hook/hashes.dart - - .github/workflows/intl4x_artifacts.yml push: tags: - 'intl4x-icu*'