-
Notifications
You must be signed in to change notification settings - Fork 281
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
Build and test on arm64 runner #4802
base: main
Are you sure you want to change the base?
Conversation
b6213fe
to
59dd43f
Compare
@aairey should we merge this, despite multiple failures? |
I don't think so. Someone who understands these test failures should take a look. |
in that case, what was the purpose of approving this pr? |
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.
Fix test failures.
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.
separately, since you seem to understand about docker so much, could you help make sense of the claim that docker images no longer work, please?
see context: #4761 (comment)
@@ -21,6 +21,7 @@ jobs: | |||
os: | |||
- windows-latest | |||
- ubuntu-latest | |||
- ubuntu-24.04-arm |
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 am not sure about this... we don't run on macos either.
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.
hmm... now i wonder why tests have failed for this platform. any ideas?
@@ -54,7 +55,7 @@ jobs: | |||
fail-fast: false | |||
matrix: | |||
java: [ '11' ] | |||
os: [ windows-latest, ubuntu-latest ] | |||
os: [ windows-latest, ubuntu-latest, ubuntu-24.04-arm ] |
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 definitely don't need this, the whole point was to make sure windows and non-windows are handled correctly.
@@ -61,20 +61,17 @@ jobs: | |||
dockerize: | |||
needs: [ scala-native ] | |||
if: ${{ github.event_name == 'release' == success() }} | |||
runs-on: ubuntu-latest | |||
runs-on: ${{ matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }} |
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.
not ubuntu-latest anymore, it's a fixed version now.
also, any way to re-use the same deploy matrix (with os and name fields) from above?
@@ -83,12 +80,59 @@ jobs: | |||
with: | |||
username: ${{ secrets.DOCKER_USERNAME }} | |||
password: ${{ secrets.DOCKER_PASSWORD }} | |||
- name: Set up Docker Buildx | |||
uses: docker/setup-buildx-action@v3 |
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.
what does this do?
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
outputs: type=image,"name=scalameta/scalafmt",push-by-digest=true,name-canonical=true |
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.
why do we not need tags here?
- name: Upload digest | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: digests-${{ matrix.platform == 'linux/arm64' && 'arm64' || 'amd64' }} |
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.
this test keeps getting repeated. i'd go with the same, or similar, multi-field matrix strategy (see comment above, about deploy matrix).
linux/arm64
docker imagesCloses #3542