-
-
Notifications
You must be signed in to change notification settings - Fork 62
66 lines (63 loc) · 1.93 KB
/
robot.yml
File metadata and controls
66 lines (63 loc) · 1.93 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
on:
push:
tags:
- 'v*'
branches:
- master
- next
pull_request:
branches:
- master
permissions:
contents: write
name: Build robot
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
java: [ 8, 11, 17, 21 ]
name: Java ${{ matrix.java }}
steps:
- name: Checkout with submodules
uses: actions/checkout@v5.0.0
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.0.0
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: maven
- name: Run Maven for capfile
if: matrix.java != 8
run: ./mvnw -B --no-transfer-progress -T1C -U -Pcheck verify
- name: Run ANT tests
run: ant test dist
- name: Get SHA-256 of ant-javacard.jar
run: echo "JARSUM=$(shasum -a 256 --tag ant-javacard.jar)" >> "$GITHUB_ENV"
- name: Deploy package or snapshot
if: github.event_name != 'pull_request' && matrix.java == '11'
uses: martinpaljak/maven-ssh-deploy@v1
with:
key: ${{ secrets.SSH_KEY }}
user: mvn@mvn.javacard.pro
host_fp: SHA256:auiF3nHWvDmvq2stDl+QEECCqMcDp+FY1/bDRnvxpRw
- name: Upload
if: github.event_name != 'pull_request' && matrix.java == '11'
uses: actions/upload-artifact@v5.0.0
with:
name: ant-javacard.jar
path: ant-javacard.jar
- name: Release
if: startsWith(github.ref, 'refs/tags/v') && matrix.java == '11'
id: create_release
uses: softprops/action-gh-release@v2.5.0
with:
files: |
ant-javacard.jar
fail_on_unmatched_files: true
body: "Release ${{ github.ref_name }}, `${{ env.JARSUM }}` (built with JDK-11)"
prerelease: true # manually promoted