Skip to content

Release: make the R package release workflow work #134

@tbouffard

Description

@tbouffard

It has been introduced in the 0.2.0 version and it failed at that time

https://github.com/process-analytics/bpmn-layout-generators/actions/runs/10521320482/job/29151774691#step:6:3181

Error:  Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project bpmn-layout-generator: Fatal error compiling: error: invalid target release: 17 -> [Help 1]

The java distribution is not configured, so the build uses the java version installed by default on the runner which is java 11 at that time (https://github.com/actions/runner-images/blob/69f706a1062a11c09911d22f8545a1cae5826bec/images/ubuntu/Ubuntu2204-Readme.md#java).
But there are other problems. The R environment is not configured so the build will fail later.

### Tasks for the 0.2.0
- [ ] Create the branch and push the jar
- [ ] Push also the rest of the files of the R package in https://github.com/process-analytics/bpmn-layout-generators/tree/bpmnLayoutGeneratoR-0.2.0

Note @tbouffard on 2024-08-23: my local PC is not configured to build the R package. So, I cannot proceed for now.
I have put a message in the release note.
The error I got (probably due to a local environment issue):

mkdir -p target
Rscript -e "devtools::build(path = \"target\")"
/opt/R/4.1.1/lib/R/bin/exec/R: error while loading shared libraries: libicuuc.so.66: cannot open shared object file: No such file or directory
make: *** [Makefile:25 : target] Erreur 127
### Tasks
- [x] Configure Java. #135
- [ ] Configure R. Check what we do in https://github.com/process-analytics/bpmn-visualization-R/tree/main/.github/workflows
- [ ] To validate the R configuration, create a GH workflow to build the R package on PR and master branch changes. See #105

Metadata

Metadata

Assignees

No one assigned

    Labels

    choreBuild, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions