Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-14, windows-2022]
os: [ubuntu-24.04, macos-15, windows-latest]
sofa_branch: [master]
python_version: ['3.10']
python_version: ['3.12']

steps:
- name: Setup SOFA and environment
Expand All @@ -32,19 +32,19 @@ jobs:
sofa_scope: 'standard'
sofa_with_sofapython3: 'false'
python_version: '${{ matrix.python_version }}'

- name: Checkout source code
uses: actions/checkout@v2
with:
path: ${{ env.WORKSPACE_SRC_PATH }}

- name: Setup cache for ccache files
if: ${{ runner.os != 'Windows' }}
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ccache_${{ runner.os }}

- name: Build and install
id: build-install
shell: bash
Expand All @@ -59,7 +59,7 @@ jobs:
cmake_options="$cmake_options -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
fi
cmake_options="$(echo $cmake_options)" # prettify

if [[ "$RUNNER_OS" == "Windows" ]]; then
cmd //c "${{ steps.sofa.outputs.vs_vsdevcmd }} \
&& cd /d $WORKSPACE_BUILD_PATH \
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
id: gen-stub
shell: bash
run: |

#Install stubgen
${{ steps.sofa.outputs.python_exe }} -m pip install mypy pybind11-stubgen

Expand All @@ -114,7 +114,7 @@ jobs:
run: |
PROJECT_NAME="${GITHUB_REPOSITORY#*/}"
echo "PROJECT_NAME=$PROJECT_NAME" | tee -a $GITHUB_ENV

ARTIFACT_VERSION="${{ steps.sofa.outputs.run_branch }}"
if [[ "${{ github.event.inputs.is_nightly }}" == "true" ]]; then
ARTIFACT_VERSION="${ARTIFACT_VERSION}-nightly"
Expand All @@ -135,12 +135,12 @@ jobs:
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.WORKSPACE_ARTIFACT_PATH }}

- name: Pepare python environement for tests
shell: bash
run: |
${{ steps.sofa.outputs.python_exe }} -m pip install rpyc matplotlib

echo "PYTHONPATH=${{ env.WORKSPACE_BUILD_PATH }}/lib/python3/site-packages" | tee -a $GITHUB_ENV


Expand All @@ -158,7 +158,7 @@ jobs:

- name: Notify dashboard
if: always() && startsWith(github.repository, 'sofa-framework') && startsWith(github.ref, 'refs/heads/master') # we are not on a fork and on master
env:
env:
DASH_AUTH: ${{ secrets.PLUGIN_DASH }}
shell: bash
run: |
Expand All @@ -174,7 +174,7 @@ jobs:
echo 'true' || echo 'false')

os=$(echo "${{ matrix.os }}" | awk -F- '{ print $1 }')


curl -X POST -H "X-API-KEY: $DASH_AUTH" -H "Content-Type: application/json" -d \
"{\"id\":\"$(echo "${{ github.repository }}" | awk -F/ '{ print $2 }')\",\
Expand Down Expand Up @@ -207,7 +207,7 @@ jobs:
done
PROJECT_NAME="${GITHUB_REPOSITORY#*/}"
echo "PROJECT_NAME=$PROJECT_NAME" | tee -a $GITHUB_ENV

RELEASE_NAME="${{ github.ref_name }}"
RELEASE_TAGNAME="release-${{ github.ref_name }}"
BRANCH_NAME="$RELEASE_NAME"
Expand Down
Loading