From 6ed20662079a4c304e0cdb636dcf34d18c98ba30 Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Sat, 28 Sep 2024 15:37:20 +0700 Subject: [PATCH] fix(flutter): flutter builder caching being broken - part 3 (#320) * fix(cat-ci): Flutter broken CI cache * fix(cat-ci): spelling * fix(cat-ci): really fix the spelling * fix(cat-ci): Make a test for building flutter-base in cat-ci. * style(cat-ci): dedent the run lines for google chrome * fix(cat-ci): env var definition and spelling * fix(docs): Upstream broke the deploy gh-pages action * test(flutter): See if we can build multi-platform in CI to test both amd64 and arm64 flutter base builders * test(cat-ci): Forcibly break the flutter base image test builder * test(flutter): Change the build target to a test target * test(flutter): Actually try the all-hosts builder test for flutter * test(flutter): Divide the amd64 and arm64 builder test builds so its easier to see if one fails. --- .github/workflows/pages.yml | 2 +- earthly/flutter/Earthfile | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 765e46c6e..7eb528ea4 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -94,7 +94,7 @@ jobs: runner_address: ${{ secrets.earthly_runner_address }} artifact: "true" - name: Publish docs - uses: JamesIves/github-pages-deploy-action@v4 + uses: JamesIves/github-pages-deploy-action@v4.6.4 with: clean: true clean-exclude: | diff --git a/earthly/flutter/Earthfile b/earthly/flutter/Earthfile index c88774817..325ef5922 100644 --- a/earthly/flutter/Earthfile +++ b/earthly/flutter/Earthfile @@ -49,13 +49,13 @@ flutter-base: RUN dart pub global activate combine_coverage RUN dart pub global activate license_checker -# flutter-base-all-hosts installs required tools and packages for all hosts. -flutter-base-all-hosts: - BUILD --platform=linux/amd64 --platform=linux/arm64 +flutter-base +# test-flutter-base-amd64 : installs required tools and packages for amd64. +test-flutter-base-amd64: + BUILD --platform=linux/amd64 +flutter-base -# Test that we can actually build the flutter base image. -build-flutter-base: - FROM +flutter-base +# test-flutter-base-arm64 : installs required tools and packages for arm64. +test-flutter-base-arm64: + BUILD --platform=linux/arm64 +flutter-base SETUP: FUNCTION