Skip to content

Commit

Permalink
Merge branch 'master' into 25_01_update_macos_builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul authored Jan 29, 2025
2 parents 3a9ea54 + f315580 commit 3e31294
Show file tree
Hide file tree
Showing 42 changed files with 9,963 additions and 5,383 deletions.
54 changes: 40 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-14, windows-2019]
os: [ubuntu-22.04, macos-14, windows-2022]
sofa_branch: [master]

steps:
- name: Setup SOFA and environment
id: sofa
uses: sofa-framework/sofa-setup-action@v4
uses: sofa-framework/sofa-setup-action@v5
with:
sofa_root: ${{ github.workspace }}/sofa
sofa_version: ${{ matrix.sofa_branch }}
Expand All @@ -37,7 +37,7 @@ jobs:
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
sudo apt-get update
sudo apt-get -qq install xorg-dev
sudo apt-get -qq install xorg-dev libgtk-3-dev
fi
- name: Build and install
Expand Down Expand Up @@ -72,16 +72,29 @@ jobs:
echo ${CCACHE_BASEDIR}
ccache -s
fi
- name: Sanitize artifact name
id: sanitize
# This step removes special characters from the artifact name to ensure compatibility with upload-artifact
# Characters removed: " : < > | * ? \r \n \ /
# Spaces are replaced with underscores
# This sanitization prevents errors in artifact creation and retrieval
shell: pwsh
run: |
$originalName = "SofaGLFW_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}"
$artifact_name = $originalName -replace '[":;<>|*?\r\n\\/]', '' -replace ' ', '_'
echo "artifact_name=$artifact_name" >> $env:GITHUB_OUTPUT
- name: Create artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.4.0
with:
name: SofaGLFW_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
name: ${{ steps.sanitize.outputs.artifact_name }}
path: ${{ env.WORKSPACE_INSTALL_PATH }}

- name: Install artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4.1.7
with:
name: SofaGLFW_${{ steps.sofa.outputs.run_branch }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
name: ${{ steps.sanitize.outputs.artifact_name }}
path: ${{ env.WORKSPACE_ARTIFACT_PATH }}


Expand Down Expand Up @@ -144,13 +157,13 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-12, windows-2019]
os: [ubuntu-22.04, macos-13, windows-2022]
sofa_branch: [master]

steps:
- name: Setup SOFA and environment
id: sofa
uses: sofa-framework/sofa-setup-action@v4
uses: sofa-framework/sofa-setup-action@v5
with:
sofa_root: ${{ github.workspace }}/sofa
sofa_version: ${{ matrix.sofa_branch }}
Expand All @@ -166,7 +179,7 @@ jobs:
run: |
if [[ "$RUNNER_OS" == "Linux" ]]; then
sudo apt-get update
sudo apt-get -qq install xorg-dev gtk+-3.0
sudo apt-get -qq install xorg-dev libgtk-3-dev
fi
- name: Build and install
Expand Down Expand Up @@ -203,16 +216,29 @@ jobs:
echo ${CCACHE_BASEDIR}
ccache -s
fi
- name: Sanitize artifact name
id: sanitize
# This step removes special characters from the artifact name to ensure compatibility with upload-artifact
# Characters removed: " : < > | * ? \r \n \ /
# Spaces are replaced with underscores
# This sanitization prevents errors in artifact creation and retrieval
shell: pwsh
run: |
$originalName = "SofaGLFW_${{ steps.sofa.outputs.run_branch }}_with_imgui_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}"
$artifact_name = $originalName -replace '[":;<>|*?\r\n\\/]', '' -replace ' ', '_'
echo "artifact_name=$artifact_name" >> $env:GITHUB_OUTPUT
- name: Create artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4.4.0
with:
name: SofaGLFW_${{ steps.sofa.outputs.run_branch }}_with_imgui_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
name: ${{ steps.sanitize.outputs.artifact_name }}
path: ${{ env.WORKSPACE_INSTALL_PATH }}

- name: Install artifact
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4.1.7
with:
name: SofaGLFW_${{ steps.sofa.outputs.run_branch }}_with_imgui_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}
name: ${{ steps.sanitize.outputs.artifact_name }}
path: ${{ env.WORKSPACE_ARTIFACT_PATH }}


Expand Down
2 changes: 2 additions & 0 deletions SofaGLFW/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@ set(HEADER_FILES
${SOFAGLFW_SOURCE_DIR}/SofaGLFWBaseGUI.h
${SOFAGLFW_SOURCE_DIR}/BaseGUIEngine.h
${SOFAGLFW_SOURCE_DIR}/NullGUIEngine.h
${SOFAGLFW_SOURCE_DIR}/SofaGLFWMouseManager.h
)

set(SOURCE_FILES
${SOFAGLFW_SOURCE_DIR}/initSofaGLFW.cpp
${SOFAGLFW_SOURCE_DIR}/SofaGLFWWindow.cpp
${SOFAGLFW_SOURCE_DIR}/NullGUIEngine.cpp
${SOFAGLFW_SOURCE_DIR}/SofaGLFWBaseGUI.cpp
${SOFAGLFW_SOURCE_DIR}/SofaGLFWMouseManager.cpp
)

if(Sofa.GUI.Common_FOUND)
Expand Down
Loading

0 comments on commit 3e31294

Please sign in to comment.