Skip to content

louvain: stream the graph out, delete the files a run leaves #764

louvain: stream the graph out, delete the files a run leaves

louvain: stream the graph out, delete the files a run leaves #764

Workflow file for this run

name: Java CI with Maven
on:
push:
branches: [ master ]
repository_dispatch:
types: [rebuild]
jobs:
build:
name: Maven
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up JDK
uses: actions/setup-java@v6
with:
java-version: 24
distribution: 'temurin'
- name: Build with Maven
run: cd fr.lip6.move.gal.parent && mvn -B -e install -Djdk.xml.maxGeneralEntitySizeLimit=0 -Djdk.xml.totalEntitySizeLimit=0 && cd -
- name: copy update site to website
run: cp -r fr.lip6.move.gal.updatesite/target/repository/* website/ ; ls website/
- name: Set up GraalVM for the native image
uses: graalvm/setup-graalvm@v1
with:
java-version: '25'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build the native image of the command line
run: |
mkdir -p native-prod
tar xzf ITS-commandline/fr.lip6.move.gal.itscl.product/target/products/fr.lip6.move.gal.itscl.product-linux.gtk.x86_64.tar.gz -C native-prod
GRAALVM=$JAVA_HOME NATIVE_XMX=10g ITS-commandline/native/build-native.sh $PWD/native-prod $PWD/website/its-tools-native
rm -rf native-prod
- name: Copy scripts
run: cp ITS-commandline/fr.lip6.move.gal.itscl.product/target/products/*.zip website/ ; ls website/
- name: Prepare website directory
run: mkdir -p website/temp
- name: Copy zip files to website
run: |
mkdir -p website
cp ITS-commandline/fr.lip6.move.gal.itscl.product/target/products/*.zip website/
- name: Convert tar.gz to zip and move to website
run: |
mkdir -p temp
for file in ITS-commandline/fr.lip6.move.gal.itscl.product/target/products/*.tar.gz; do
# Extract the tar.gz file to a temporary directory
tar -zxvf "$file" -C temp
# Get the base name of the file
base_name=$(basename "$file" .tar.gz)
# Create a zip file with the same base name in the website directory
(cd temp && zip -r "../website/${base_name}.zip" .)
# Clean up the contents of the temporary directory
rm -rf temp/*
done
# Remove the temporary directory
rm -rf temp
- name: Delete unused platform specifics from dist
run: |
cd website
zip -d fr.lip6.move.gal.itscl.product-linux.gtk.x86_64.zip '*-win64' '*-Darwin'
zip -d fr.lip6.move.gal.itscl.product-macosx.cocoa.x86_64.zip '*-win64' '*-linux64'
zip -d fr.lip6.move.gal.itscl.product-win32.win32.x86_64.zip '*-linux64' '*-Darwin'
cd ..
- name: Clean up temporary files
run: rm -rf website/temp
- name: Build converter jar
run: cd mist/fr.lip6.converter && mvn install ; cp target/*.jar ../../website/ ; ls ../../website/
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: website/ # The folder the action should deploy.
clean: true # Automatically remove deleted files from the deploy branch
single-commit: true