Skip to content

Merge pull request #33 from lip6/dependabot/github_actions/JamesIves/… #74

Merge pull request #33 from lip6/dependabot/github_actions/JamesIves/…

Merge pull request #33 from lip6/dependabot/github_actions/JamesIves/… #74

Workflow file for this run

name: windows build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: install packages
run: C:\msys64\usr\bin\bash -lc "PATH+=:/mingw64/bin ; pacman --noconfirm -S base-devel gcc p7zip"
- name: configure and make
run: C:\msys64\usr\bin\bash -lc "PATH+=:/mingw64/bin ; cd /D/a/Louvain-BinaryBuild/Louvain-BinaryBuild ; ./build_louvain.sh && mv website/louvain_linux.tar.gz website/louvain_windows.tar.gz && cp -r website/ site/ "
- name: Upload Artifacts 🔺 # The project is then uploaded as an artifact named 'site'.
uses: actions/upload-artifact@v4
with:
name: site
path: site/
deploy:
needs: [build] # The second job must depend on the first one to complete before running, and uses ubuntu-latest instead of windows.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Download Artifacts 🔻 # The built project is downloaded into the 'site' folder.
uses: actions/download-artifact@v4
with:
name: site
- name: move to website
run: ls -lah ; mkdir -p windows ; cp louvain.exe louvain_windows.tar.gz convert.exe windows/ ; ls -lah windows/
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: Windows
folder: windows/ # The deployment folder should match the name of the artifact. Even though our project builds into the 'build' folder the artifact name of 'site' must be placed here.
clean: true # Automatically remove deleted files from the deploy branch
single-commit: true