-
Notifications
You must be signed in to change notification settings - Fork 36
build: matrix for sample checks to speed up build #1376
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
821806c
build: matrix for sample checks to speed up build
johanandren 2e543f5
bump cache action to 4.3.0
johanandren fd6d2f1
extract native image to a nightly, separate non java/scala checks fro…
johanandren 02ab805
actually check out first in diff tests
johanandren 1421b2a
rust doesn't depend on anything, downstream status check aggregation …
johanandren 00a1474
bump coursier cache to working version
johanandren 68d35d3
no discipline for the build local artifacts for tests
johanandren c08146b
native image tests weekly, note in release template, skip docs on pub…
johanandren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| name: Native Image checks | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| schedule: | ||
| - cron: "0 0 * * *" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| name: Test Native Image | ||
| runs-on: Akka-Default | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| # https://github.com/actions/checkout/releases | ||
| # v4.1.1 | ||
| uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Checkout GitHub merge | ||
| if: github.event.pull_request | ||
| run: |- | ||
| git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch | ||
| git checkout scratch | ||
| - name: Cache Coursier cache | ||
| # https://github.com/coursier/cache-action/releases | ||
| # v7.0.0 | ||
| uses: coursier/cache-action@bebeeb0e6f48ebad66d3783946588ecf43114433 | ||
|
|
||
| - name: Set up GraalVM 21 | ||
| # https://github.com/coursier/setup-action/releases | ||
| # v1.3.5 | ||
| uses: coursier/setup-action@7bde40eee928896f074dbb76d22dd772eed5c65f | ||
| with: | ||
| jvm: graalvm-community:21.0.2 | ||
|
|
||
| - name: "Build and test Scala Native Image" | ||
| run: | | ||
| cd samples/grpc/local-drone-control-scala | ||
| sbt nativeImage -Dnative.mode=clustered -Dakka-projection.version=`cat ~/.version` | ||
| sbt nativeImage -Dakka-projection.version=`cat ~/.version` | ||
| target/native-image/local-drone-control & | ||
| DRONE_CONTROL_PID=$! | ||
| sbt "Test/runMain drones.DroneClientTestApp 127.0.0.1 8080" -Dakka-projection.version=`cat ~/.version` | ||
| kill -9 $DRONE_CONTROL_PID | ||
| - name: "Build and test Java Native Image" | ||
| run: | | ||
| cd samples/grpc/local-drone-control-java | ||
| mvn -DskipTests=true -Pnative package -nsu -Dakka-projection.version=`cat ~/.version` | ||
| mvn -DskipTests=true -Pnative -Pclustered package -nsu -Dakka-projection.version=`cat ~/.version` | ||
| - name: Email on failure | ||
| if: ${{ failure() }} | ||
| uses: dawidd6/action-send-mail@6063705cefe50cb915fc53bb06d4049cae2953b2 | ||
| with: | ||
| server_address: smtp.gmail.com | ||
| server_port: 465 | ||
| secure: true | ||
| username: ${{secrets.MAIL_USERNAME}} | ||
| password: ${{secrets.MAIL_PASSWORD}} | ||
| subject: "Failed: ${{ github.workflow }} / ${{ github.job }}" | ||
| to: ${{secrets.MAIL_SEND_TO}} | ||
| from: Akka CI | ||
| body: | | ||
| Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed! | ||
| https://github.com/${{github.repository}}/actions/runs/${{github.run_id}} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.