forked from licel/jcardsim
-
-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (44 loc) · 1.36 KB
/
robot.yml
File metadata and controls
47 lines (44 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build robot
on:
push:
branches:
- next
pull_request:
branches:
- next
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
java: [ 11, 17, 21, 24 ]
name: Java ${{ matrix.java }} build
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0 # To make git describe give the intended output
fetch-tags: true
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: zulu
cache: maven
- name: Run Maven
run: ./mvnw -B --no-transfer-progress initialize && ./mvnw -B --no-transfer-progress -T1C -U verify
- name: Set SSH key
if: matrix.java == '11' && github.ref == 'refs/heads/next'
uses: webfactory/ssh-agent@v0.9.1
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Add known host key
if: matrix.java == '11' && github.ref == 'refs/heads/next'
run: ssh-keyscan mvn.javacard.pro >> ~/.ssh/known_hosts
- name: Deploy package
if: matrix.java == '11' && github.ref == 'refs/heads/next'
run: ./mvnw -B --no-transfer-progress deploy