Skip to content

Commit

Permalink
build: Placeholder for the native image nightly tests (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren authored Feb 19, 2024
1 parent 3b85621 commit b2b64a3
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/native-image-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Native Image Tests

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
contents: read

jobs:
native-image-tests:
name: Run Native Image Tests
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected]
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
uses: coursier/[email protected]

- name: Set up JDK 11
# https://github.com/coursier/setup-action/releases
uses: coursier/[email protected]
with:
jvm: temurin:1.11

- name: Gather version
run: |-
echo `git describe --tags | sed -e "s/v\(.*\)-\([0-9][0-9]*\).*/\\1+\\2-/"``git rev-parse HEAD | head -c8`-SNAPSHOT > ~/.version
cat ~/.version
- name: Publish artifacts locally
run: |-
sbt "publishLocal; publishM2"
#- name: Akka Management native image test app build
# run: |-
# cd native-image-tests/grpc-scala
# sbt nativeImage -Dakka.grpc.version=`cat ~/.version`
# # run the binary, netty client backend
# target/native-image/grpc-scala
# # akka-http client backend
# target/native-image/grpc-scala akka-http-client

- 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}}

0 comments on commit b2b64a3

Please sign in to comment.