Commit Graph

282 Commits

Author SHA1 Message Date
Peter Leibiger
1a449444c3 Simplify extraction of zip files (#379)
Some checks failed
test / test_channel (beta, false, https://gitee.com/harmonycommando_flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (beta, false, https://github.com/Flutter-Foundation/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (beta, false, https://github.com/flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (beta, true, https://gitee.com/harmonycommando_flutter/flutter.git, macos-latest) (push) Failing after 2s
test / test_channel (beta, true, https://github.com/Flutter-Foundation/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (beta, true, https://github.com/flutter/flutter.git, macos-latest) (push) Failing after 2s
test / test_channel (master, false, https://gitee.com/harmonycommando_flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (master, false, https://github.com/Flutter-Foundation/flutter.git, macos-latest) (push) Failing after 2s
test / test_channel (master, false, https://github.com/flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (master, true, https://gitee.com/harmonycommando_flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (master, true, https://github.com/Flutter-Foundation/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (master, true, https://github.com/flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (stable, false, https://gitee.com/harmonycommando_flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (stable, false, https://github.com/Flutter-Foundation/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (stable, false, https://github.com/flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (stable, true, https://gitee.com/harmonycommando_flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_channel (stable, true, https://github.com/Flutter-Foundation/flutter.git, macos-latest) (push) Failing after 4s
test / test_channel (stable, true, https://github.com/flutter/flutter.git, macos-latest) (push) Failing after 3s
test / test_cache (macos-latest) (push) Failing after 3s
test / test_master_version (macos-latest) (push) Failing after 3s
test / test_print_output_arm64 (push) Failing after 3s
test / lint_shellcheck (push) Successful in 14s
test / test_channel (beta, false, https://gitee.com/harmonycommando_flutter/flutter.git, ubuntu-latest) (push) Failing after 11s
test / test_channel (beta, false, https://github.com/Flutter-Foundation/flutter.git, ubuntu-latest) (push) Failing after 11s
test / test_channel (beta, false, https://github.com/flutter/flutter.git, ubuntu-latest) (push) Failing after 10s
test / test_channel (beta, true, https://gitee.com/harmonycommando_flutter/flutter.git, ubuntu-latest) (push) Failing after 10s
test / test_channel (beta, true, https://github.com/Flutter-Foundation/flutter.git, ubuntu-latest) (push) Failing after 10s
test / test_channel (beta, true, https://github.com/flutter/flutter.git, ubuntu-latest) (push) Failing after 10s
test / test_channel (main, ubuntu-latest) (push) Failing after 11s
test / test_channel (master, false, https://gitee.com/harmonycommando_flutter/flutter.git, ubuntu-latest) (push) Failing after 11s
test / test_channel (master, false, https://github.com/Flutter-Foundation/flutter.git, ubuntu-latest) (push) Failing after 11s
test / test_channel (master, false, https://github.com/flutter/flutter.git, ubuntu-latest) (push) Failing after 11s
test / test_channel (master, true, https://gitee.com/harmonycommando_flutter/flutter.git, ubuntu-latest) (push) Failing after 11s
test / test_channel (master, true, https://github.com/Flutter-Foundation/flutter.git, ubuntu-latest) (push) Failing after 11s
test / test_channel (master, true, https://github.com/flutter/flutter.git, ubuntu-latest) (push) Failing after 10s
test / test_channel (stable, false, https://gitee.com/harmonycommando_flutter/flutter.git, ubuntu-latest) (push) Failing after 10s
test / test_channel (stable, false, https://github.com/Flutter-Foundation/flutter.git, ubuntu-latest) (push) Failing after 10s
test / test_channel (stable, false, https://github.com/flutter/flutter.git, ubuntu-latest) (push) Failing after 13s
test / test_channel (stable, true, https://gitee.com/harmonycommando_flutter/flutter.git, ubuntu-latest) (push) Failing after 10s
test / test_channel (stable, true, https://github.com/Flutter-Foundation/flutter.git, ubuntu-latest) (push) Failing after 10s
test / test_channel (stable, true, https://github.com/flutter/flutter.git, ubuntu-latest) (push) Failing after 12s
test / test_cache (ubuntu-latest) (push) Failing after 11s
test / test_version_file (ubuntu-latest) (push) Failing after 11s
test / test_master_version (ubuntu-latest) (push) Failing after 11s
test / test_print_output_x64 (push) Failing after 8s
test / test_channel (beta, false, https://gitee.com/harmonycommando_flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (beta, false, https://github.com/Flutter-Foundation/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (beta, false, https://github.com/flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (beta, true, https://gitee.com/harmonycommando_flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (beta, true, https://github.com/Flutter-Foundation/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (beta, true, https://github.com/flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (master, false, https://gitee.com/harmonycommando_flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (master, false, https://github.com/Flutter-Foundation/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (stable, true, https://github.com/Flutter-Foundation/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (stable, true, https://github.com/flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_cache (windows-latest) (push) Has been cancelled
test / test_channel (master, false, https://github.com/flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (master, true, https://gitee.com/harmonycommando_flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (master, true, https://github.com/Flutter-Foundation/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (master, true, https://github.com/flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (stable, false, https://gitee.com/harmonycommando_flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (stable, false, https://github.com/Flutter-Foundation/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (stable, false, https://github.com/flutter/flutter.git, windows-latest) (push) Has been cancelled
test / test_channel (stable, true, https://gitee.com/harmonycommando_flutter/flutter.git, windows-latest) (push) Has been cancelled
* Simplify extraction of zip files in setup.sh

Refactor unzip command to directly extract to target directory.
By keeping the /flutter directory from inside the archive, we avoid having to use a temp directory and move afterwards.

* fix: checkout specific version on main/master
v2 v2.23.0
2026-03-25 11:24:42 +01:00
Bartek Pacia
4efee115f1 readme: minor updates (#392) 2026-03-18 17:23:45 +01:00
Bartek Pacia
d97c38e97d add a CI job that checks out a specific master commit (#391) 2026-03-18 17:00:36 +01:00
Bartek Pacia
75b905c640 chores (#390)
* readme: update note about yq

* readme: minor updates (semantic line breaks)

* checkout@v4 -> checkout@v6
2026-03-18 15:40:24 +01:00
Peter Leibiger
7ff07e9ecd Add separate pub-cache boolean flag (#377)
This allows to selectively enabled pub dependency caching. Uses backwards compatible default if only `cache: true` is set.

Also update README
2026-03-18 15:31:10 +01:00
Pedro Monteiro
6622f58c44 feat: fvm support (#383)
* feat: added support for .fvmrc files, so it can fetch the flutter version from there

* feat: changed README description of action to accomodate new changes
2026-03-18 14:18:09 +01:00
Bartek Pacia
0ca7a949e7 Remove macos-13 (Intel) runner from CI (#388)
macos-13 was retired by GitHub in December 2025 and no longer works.
Intel-based macOS runners are being phased out entirely by GitHub,
with only expensive *-large variants remaining as alternatives.

Closes #387

Made-with: Cursor
v2.22.0
2026-03-17 13:23:10 +01:00
Azincc
de04a6aaec Upgrade actions/cache to v5 (#385) 2026-03-16 15:24:34 +07:00
Nicholas Beninato
fd55f4c5af Support dynamic values for PUB-CACHE-PATH (#363)
* use expand_key for PUB_CACHE_PATH

* add tests

* add dash

* use PUB_CACHE
v2.21.0
2025-06-24 23:50:48 +02:00
Bartek Pacia
ca16aee0c3 fix broken links in README (#365) 2025-06-24 23:48:20 +02:00
Nicholas Beninato
947e9c91a5 Add cache hit outputs (#364)
* feat: impl cache hit outputs

* support flutter cache and pub cache outputs

* add cache output example to readme

* use cache step directly

* update readme

---------

Co-authored-by: anies1212 <all.for.me1212sna@gmail.com>
2025-06-24 23:41:32 +02:00
atishoo
395322a6cd use env if it existed (#360) v2.20.0 2025-06-10 09:21:26 +02:00
Christer Eliasi-Swahn
02d6ac3427 perf: Only install yq on Windows if used (#362) 2025-06-09 09:54:01 +02:00
Victor Eronmosele
e938fdf565 Update Flock's git URL in README (#347)
* Update Flock's git URL in README

* Update Flock's git URL in code sample
v2.19.0
2025-03-24 21:47:02 +01:00
Peter Leibiger
bcafcd664b Fix PUB-CACHE-PATH output different to PUB_CACHE env variable (#348) 2025-03-24 21:46:39 +01:00
Luke Bonsey
1177d931c8 fix: remove restore keys (#349) 2025-03-24 21:42:03 +01:00
Koji Wakamiya
ce3cf2160d test: Split test cases by architecture (#305) 2024-12-20 10:31:11 +01:00
Bartek Pacia
f2c4f6686c fix syntax mistake in readme (#338) v2.18.0 2024-12-03 21:06:22 +01:00
Bartek Pacia
fd476281dd improve readme (#337) 2024-12-03 21:04:13 +01:00
ErBW_s
799318a131 feat: add git source support (#334)
* try to add git source support

* improve GIT_SOURCE output name

* fix syntax

---------

Co-authored-by: Bartek Pacia <barpac02@gmail.com>
2024-12-03 20:23:57 +01:00
Bartek Pacia
8535a80ce0 Feature/yq on windows (#336)
* install `yq` if runner.os is `windows`

* update readme with `yq` on windows info
2024-12-03 20:05:47 +01:00
Bartek Pacia
7642db7052 update readme (#335) 2024-12-03 19:58:13 +01:00
Thomas Aunvik
74af56c5ed Support older yq versions (#329) v2.17.0 2024-11-23 23:26:19 +01:00
Koji Wakamiya
9bc1d83fda Remove macos-14 from matrix (#304)
* fix: Fix conditional statements in workflow

* chore: Update operating system matrix
2024-11-23 23:26:02 +01:00
Bartek Pacia
bcec24ecf7 Fix failing tests (#327)
* try to fix failing tests

* continue on error

* remove Flutter versions that aren't available natively for arm64 macOS

* explicitly specify arch = x64 (`-a x64`)

* fix order of args

* remove redundant quotes

* make `dry-run` also accept bools
2024-08-21 02:53:58 +01:00
Bartek Pacia
94b32dd006 test action: allow to run manually (#325) 2024-08-20 02:09:15 +01:00
kzrnm
44ac965b96 Add dry-run (#270)
* Add dry-run

* Add dry-run test

* format

---------

Co-authored-by: Bartek Pacia <barpac02@gmail.com>
v2.16.0
2024-04-02 14:25:52 +02:00
Bartek Pacia
980391a6c5 more README fixes (#292) 2024-04-01 04:09:25 +02:00
Bartek Pacia
3d80492992 update README (#291) v2.15.0 2024-04-01 04:07:29 +02:00
Bartek Pacia
0ef13f12a5 Add flutter-version-file (#290)
* update README with new info

* setup.sh: update arg parsing to add support for `flutter-version-file` as `-f pubspec.yaml`

* action.yaml: add flutter-version-file

* setup.sh: require `yq` only when -f option is specified

* fix tests and add a new one

* enable shell options: `errexit` and `nounset`

* move falling back to defaults to single place - setup.sh

* action.yaml: reduce number of arguments in the last invocation
2024-04-01 04:03:05 +02:00
Bartek Pacia
7564de34b3 Merge pull request #288 from subosito/chore/action_yaml_refactor
Split longer lines in action.yaml
2024-03-31 22:57:59 +02:00
Bartek Pacia
2b3ab6c7da convert some if-statements to be POSIX-compatible 2024-03-31 22:50:24 +02:00
Bartek Pacia
49cd17165c split longer lines 2024-03-31 22:15:17 +02:00
Bartek Pacia
cf12a39989 Merge pull request #287 from subosito/minor
workflow.yaml: minor fix
2024-03-31 22:08:41 +02:00
Bartek Pacia
cea4cf68a1 workflow.yaml: minor fix 2024-03-31 22:08:29 +02:00
Bartek Pacia
043862d930 Merge pull request #286 from subosito/format
Format
2024-03-31 22:07:58 +02:00
Bartek Pacia
e70699e140 file renames 2024-03-31 22:07:39 +02:00
Bartek Pacia
766e0c11bc minor readme format update 2024-03-31 19:52:05 +02:00
Bartek Pacia
7d86479cec Merge pull request #285 from subosito/format
Minor formatting changes
2024-03-31 19:37:58 +02:00
Bartek Pacia
86d4518859 format workflow.yml 2024-03-31 19:33:40 +02:00
Bartek Pacia
e2c456ecd7 format README 2024-03-31 19:31:02 +02:00
Bartek Pacia
46719f5374 format the action nicely 2024-03-31 19:21:19 +02:00
Bartek Pacia
54a6ca61b1 run prettier 2024-03-31 19:15:36 +02:00
Bartek Pacia
d3969fb775 Merge pull request #284 from niccokunzmann/patch-1
Restructure Documentation
2024-03-31 18:28:15 +02:00
Nicco Kunzmann
d32931db2f Structure Documentation
Adds sections: Flutter Version, Build Target, Cache
Bold build target names to find them more easily
2024-03-31 17:24:22 +01:00
Bartek Pacia
ab382cfb66 Merge pull request #281 from koji-1009/chore/m1_chip
chore: Add m1 chip macos machine
2024-03-31 17:24:36 +02:00
Richard Shiue
1c5eb12d81 fix: specify pub cache path (#280) v2.14.0 2024-03-20 11:20:53 +07:00
Koji Wakamiya
d1e0151b5f chore: Add m1 chip macos 2024-03-18 22:40:06 +09:00
Koji Wakamiya
62f096cacd Update README (#266)
* doc: Update README

* fix: Specify the dev channel version
v2.13.0
2024-02-13 07:52:27 +07:00
Jørgen Tjernø
844082558d Improvements to caching (#265)
* Bump actions/cache to v4 to suppress node warnings

* Respect `PUB_CACHE` from the environment

* Cache pub-cache separately from flutter

In order to reduce the extra work that happens when you update your
pubspec.lock, don't use `hashFiles('**/pubspec.lock')` in the hash of
the flutter installation, and separately cache the `.pubspec-cache`.

Also return the `.pub-cache` to `$HOME`, since it's not part of the tool
installation.

* Fix README example of pub-cache-path and document `PUB_CACHE`
2024-02-13 07:13:38 +07:00