Skip to content

Commit 8600fd8

Browse files
authoredFeb 16, 2024··
build: Placeholder workflow for native-image tests in CI (#1899)
1 parent 556c7cf commit 8600fd8

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
 
+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Native Image Tests
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
native-image-tests:
13+
name: Run Native Image Tests
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v3.1.0
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Checkout GitHub merge
22+
if: github.event.pull_request
23+
run: |-
24+
git fetch origin pull/${{ github.event.pull_request.number }}/merge:scratch
25+
git checkout scratch
26+
27+
- name: Cache Coursier cache
28+
# https://github.com/coursier/cache-action/releases
29+
uses: coursier/cache-action@v6.4.0
30+
31+
- name: Set up JDK 11
32+
# https://github.com/coursier/setup-action/releases
33+
uses: coursier/setup-action@v1.3.4
34+
with:
35+
jvm: temurin:1.11
36+
37+
- name: Gather version
38+
run: |-
39+
echo `git describe --tags | sed -e "s/v\(.*\)-\([0-9][0-9]*\).*/\\1+\\2-/"``git rev-parse HEAD | head -c8`-SNAPSHOT > ~/.version
40+
cat ~/.version
41+
42+
- name: Publish artifacts locally
43+
run: |-
44+
sbt "publishLocal; publishM2"
45+
46+
- name: Email on failure
47+
if: ${{ failure() }}
48+
uses: dawidd6/action-send-mail@6063705cefe50cb915fc53bb06d4049cae2953b2
49+
with:
50+
server_address: smtp.gmail.com
51+
server_port: 465
52+
secure: true
53+
username: ${{secrets.MAIL_USERNAME}}
54+
password: ${{secrets.MAIL_PASSWORD}}
55+
subject: "Failed: ${{ github.workflow }} / ${{ github.job }}"
56+
to: ${{secrets.MAIL_SEND_TO}}
57+
from: Akka CI
58+
body: |
59+
Job ${{ github.job }} in workflow ${{ github.workflow }} of ${{github.repository}} failed!
60+
https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}

0 commit comments

Comments
 (0)
Please sign in to comment.