Skip to content

Add source build option to makefile #70

Add source build option to makefile

Add source build option to makefile #70

Workflow file for this run

on:
push:
branches:
- master
- next
tags:
- 'v*'
pull_request:
branches:
- master
name: Build robot
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
java: [ 11, 17, 21 ]
name: Java ${{ matrix.java }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
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
- run: ./mvnw -P exe -B -U -T1C verify
- name: Release
if: startsWith(github.ref, 'refs/tags/v') && matrix.java == '11'
id: create_release
uses: softprops/[email protected]
with:
files: |
tool/target/gp.jar
tool/target/gp.exe
fail_on_unmatched_files: true
body: Release ${{ github.ref_name }}
prerelease: true # manually promoted
- name: Set SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Add known host key
run: ssh-keyscan javacard.pro >> ~/.ssh/known_hosts
- name: Deploy package
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master') && matrix.java == '11'
run: ./mvnw -B deploy