Skip to content

Commit

Permalink
Update generate_libs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MarAlder authored Aug 9, 2023
1 parent e3faa9b commit ec6777f
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .github/workflows/generate_libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- develop

jobs:
generate-cpacs-lib:
generate-python-libs:
runs-on: ubuntu-latest

steps:
Expand All @@ -30,5 +30,38 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: cpacsLib
name: cpacsPythonLib
path: cpacsLib.py

generate-java-libs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

- name: Download and Install xjc
run: |
wget https://javaee.github.io/jaxb-v2/2.3.2/jaxb-ri-2.3.2.zip
unzip jaxb-ri-2.3.2.zip
chmod +x jaxb-ri-2.3.2/bin/xjc
export PATH="$PATH:$GITHUB_WORKSPACE/jaxb-ri-2.3.2/bin"
- name: Generate Java Classes
run: |
xsd_file_path="./schema/cpacs_schema.xsd"
cd schema
xjc -d .\build\javaLib "$xsd_file_path"
- name: Upload Java Classes Artifact
uses: actions/upload-artifact@v2
with:
name: cpacsJavaLib
path: .\build\javaLib

0 comments on commit ec6777f

Please sign in to comment.