-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump GitHub Action versions #387
Conversation
Hey @jmagman, any ideas on how to fix the macOS compilation on beta? I've tried installing rosetta, but it looks like I'm holding it wrong. |
Hey @mit-mit, looks like we have a CI issue with the Dart included in Flutter 2.13.0-0 on GitHub actions for macOS only. Context: https://github.com/flutter/codelabs/runs/6050738007?check_suite_focus=true#step:5:10 |
I tought we were adding ARM64 support, so do we still need Rosetta enabled? cc @cbracken |
Yes, flutter tooling still requires Rosetta, in particular when a macOS app builds x64 in release mode on arm64 it uses the x64 version of However that Where is that cache coming from? |
Hey @jmagman, If I attempt to enable rosetta on GitHub Actions without an architecture guard it dies, because GitHub Actions is (currently) running on Intel CPUs. I think this PR is worth landing for the future when GitHub gets M1 (or M2) based build bots, but as you can see, adding Rosetta isn't fixing this build failure. So, we need another fix. Halp? |
Oh weird, then maybe it's the opposite, the version of dart being used is arm instead of x64? |
From the CI it's failing with Flutter |
@mit-mit whom do we hassle to set up a test to start debugging |
I think an issue filed here? https://github.com/subosito/flutter-action/issues |
They merged this 2 days ago subosito/flutter-action#147 |
So this would need to be updated codelabs/.github/workflows/flutter-ci.yml Line 30 in 8a38fed
- - uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8
+ - uses: subosito/flutter-action@6a13bd08366a2aafe8605f064f9d5a42107e6f1f |
.github/workflows/flutter-ci.yml
Outdated
@@ -30,6 +30,15 @@ jobs: | |||
- uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- uses: subosito/flutter-action@4389e6cbc6cb8a4b18c628ff96ff90be0e926aa8 | |
- uses: subosito/flutter-action@6a13bd08366a2aafe8605f064f9d5a42107e6f1f |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hand applied
Co-authored-by: Jenn Magder <magder@google.com>
.github/workflows/flutter-ci.yml
Outdated
@@ -23,11 +23,12 @@ jobs: | |||
flutter_version: [stable, beta] | |||
os: [ubuntu-latest, macos-latest, windows-latest] | |||
steps: | |||
- uses: actions/checkout@v2 | |||
- uses: actions/setup-java@v1 | |||
- uses: actions/checkout@v3.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use hashes here? the one for v3.0.1 is dcd71f646680f2efd8db4afa5ad64fdcba30e748
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v1 | ||
- uses: actions/checkout@v3.0.1 | ||
- uses: actions/setup-java@v3.1.1 | ||
with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hash for this version is 9519cf1382ac8dc61ad461f7f7cb45f033220189
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We may want to enable dependabot to automate the dependency updates in the future.
How do I enable dependabot to update GitHub actions? |
@domesticmouse Here's how |
You'll need to create a file in .github/dependabot.yml with lines 1-5 and 14-17. |
with: | ||
distribution: 'zulu' # See https://github.com/actions/setup-java#supported-distributions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean to add this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The distribution
is now required for setup-java
. There is a choice of java distributions, with zulu
being but one. We could alternatively use adopt-hotspot
or temurin
if that would be more appropriate.
Added |
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "pub" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also recommend to enable the npm ecosystem for packages-lock.json files in in_app_purchases/. It seems like those files also require multiple updates.
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-devrel channel on Discord.