forked from licel/jcardsim
-
-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (46 loc) · 1.51 KB
/
robot.yml
File metadata and controls
49 lines (46 loc) · 1.51 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
48
49
name: Build robot
on:
push:
branches:
- next
tags:
- 'v*'
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: [ 17, 21, 25 ]
name: Java ${{ matrix.java }} build
steps:
- name: Checkout
uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0 # To make git describe give the intended output
fetch-tags: true
- name: Setup Java
uses: actions/setup-java@v5
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 == '17' && (github.ref == 'refs/heads/next' || startsWith(github.ref, 'refs/tags/v'))
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Add known host key
if: matrix.java == '17' && (github.ref == 'refs/heads/next' || startsWith(github.ref, 'refs/tags/v'))
run: ssh-keyscan mvn.javacard.pro >> ~/.ssh/known_hosts
- name: Deploy package
if: matrix.java == '17' && (github.ref == 'refs/heads/next' || startsWith(github.ref, 'refs/tags/v'))
run: ./mvnw -B --no-transfer-progress deploy