Code Monkey home page Code Monkey logo

Comments (6)

qligier avatar qligier commented on June 19, 2024

Hi @Healthedata1! I guess this is one example of the failure: https://github.com/Healthedata1/R5ElementExtensionTest/actions/runs/5885731783/job/15962594524?

I have created a branch with some modifications:

  • The JDK is now Zulu, which is said to be a bit more stable for memory usage.
  • There is a step that shows the default configuration of Java.
  • There is an input java-flags that you can use to configure Java.

You can use it with:

- uses: qligier/fhir-ig-action@feature_memory_debug
  with:
    java-flags: "-Xmx4G"

-Xmx4G seems the first solution to try, there are other flags that may be useful too.
Otherwise, the IG Publisher should be optimized (e.g. it seems to use a StringBuilder to create file contents, a FileOutputStream would greatly lower the memory usage of this task).

Can you try if you can build your IG with these modifications?

from fhir-ig-action.

Healthedata1 avatar Healthedata1 commented on June 19, 2024

from fhir-ig-action.

Healthedata1 avatar Healthedata1 commented on June 19, 2024

That worked and thank you!

FYI this is my workflow file:

# This is a basic workflow to build a FHIR-IG and publish the output (docs folder) 
# on Git Hub Pages everytime it is pushed to the main branch

name: Build and Deploy

# Controls when the workflow will run
on:
  # Triggers the workflow on push or pull request events but only for the "main" branch
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]

  # Allows you to run this workflow manually from the Actions tab
  workflow_dispatch:

permissions:
  contents: write
jobs:
  build-and-deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout 🛎️
        uses: actions/checkout@v3
      - name: FHIR IG Action   # action from the GitHub Marketplace
        # uses: Healthedata1/[email protected]
        uses: qligier/fhir-ig-action@feature_memory_debug
        with:
          java-flags: "-Xmx4G"
          sushi: "3.2.0"
      - name: Deploy to GitHub Pages  # action from the GitHub Marketplace
        uses: JamesIves/[email protected]
        with:
          folder: docs # deploy from the docs from the prior step

from fhir-ig-action.

qligier avatar qligier commented on June 19, 2024

Thank you for testing! I'll then apply the "zulu" and "-Xmx4G" modifications to the action.

from fhir-ig-action.

qligier avatar qligier commented on June 19, 2024

I've released v0.3.0 with these changes.

from fhir-ig-action.

Healthedata1 avatar Healthedata1 commented on June 19, 2024

from fhir-ig-action.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.