Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Synchro] branch 4.1 (dev) receives bugfix from 4.0.3 to 4.0.7 #876

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
5ea1169
[4.0.3] release with debugs from manips tests and switch to ub22 (#851)
mathildemerle May 15, 2024
b7a9df1
[4.0.4] TTK dll copy error in Windows package (#854)
mathildemerle May 30, 2024
b58bf3f
[Registration] cast data in LCC and Diffeo, enhance txt in Manual (#861)
mathildemerle Oct 17, 2024
62e5c24
[PolygonROI] rm shift-click, solve interactor style after repulsor, h…
mathildemerle Nov 19, 2024
63fdbf3
[VTK9.2.6] switch to more recent VTK and ITK5.4rc04 (#859)
mathildemerle Nov 19, 2024
6363bf9
Revert "[VTK9.2.6] switch to more recent VTK and ITK5.4rc04 (#859)" (…
mathildemerle Nov 22, 2024
350b1fb
[ReleaseNotes] update 4.0.6 for pipeline closing layers (#863)
mathildemerle Nov 25, 2024
58fe580
[VOICutter] fix output if no segmentation is done (#864)
mathildemerle Nov 25, 2024
ee151bd
[Release] 4.0.6 polygon roi fixes (#865)
mathildemerle Nov 25, 2024
3cc315f
[Release] 4.0.6 polygon roi fixes (#868)
mathildemerle Nov 25, 2024
a9b281d
Retrieve FilePath metadata, facilitate direct call to data import (#870)
fcollot Dec 9, 2024
9cc5aaa
Update RELEASE_NOTES.txt (#871)
fcollot Dec 10, 2024
54a2b7d
Create musicardio-macos.yml
mathildemerle Jan 14, 2025
fd1a3ac
Update musicardio-macos.yml -- macos13
mathildemerle Jan 14, 2025
c367277
Update musicardio-macos.yml -- libomp
mathildemerle Jan 14, 2025
743addc
Update musicardio-macos.yml -- libomp version
mathildemerle Jan 14, 2025
8f9bae0
[4.0.7] polygonroi shift-click + remove contour (#872)
mathildemerle Jan 16, 2025
2c9c3a4
[GithubAction] macos, branch 4.1, dependencies, sending method (#873)
mathildemerle Jan 23, 2025
ba5b269
[4.0.7] changes of version number for description (#874)
mathildemerle Jan 28, 2025
cf6b1b6
[Paint] avoid non-needed code which can crash in processOutput method…
mathildemerle Jan 28, 2025
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
Prev Previous commit
Next Next commit
[GithubAction] macos, branch 4.1, dependencies, sending method (#873)
* [GithubAction] automatisation libomp env var + branch 4.1

* [GA] checkout ref 4.1

* [GA] prerequisites swig

* [GithubAction] simplify and standardize sending of binaries

* [GithubAction] asset name
mathildemerle authored Jan 23, 2025
commit 2c9c3a4259ea0b3d13651bcdca313d48f78e77fb
69 changes: 21 additions & 48 deletions .github/workflows/musicardio-macos.yml
Original file line number Diff line number Diff line change
@@ -4,9 +4,9 @@ name: MUSICardio on macOS

on:
push:
branches: [ "master" ]
branches: [ "4.1" ]
pull_request:
branches: [ "master" ]
branches: [ "4.1" ]
workflow_dispatch:
inputs:
EXPIRATION_TIME:
@@ -20,7 +20,6 @@ on:
env:
BUILD_TYPE: Release
QT5_DIR: "/usr/local/opt/qt@5/lib/cmake/Qt5"
OpenMP_ROOT: "/usr/local/Cellar/libomp/19.1.6"
MSC_SSH_PLUGINS: ${{ secrets.MSC_SSH_PLUGINS }}
MSC_TOKEN: ${{ secrets.MSC_TOKEN }}

@@ -32,6 +31,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 4.1

- name: Set up SSH
run: |
@@ -44,11 +45,12 @@ jobs:
run: |
brew install qt@5
brew install boost
brew install libomp
brew install swig
brew install libomp
echo "OpenMP_ROOT=$(brew --prefix libomp)" >> $GITHUB_ENV
pip3 install dmgbuild
# brew info cmake
# brew info swig


- name: Set default EXPIRATION_TIME if not provided (with non manual workflow)
run: echo "EXPIRATION_TIME=${{ inputs.EXPIRATION_TIME || '12' }}" >> $GITHUB_ENV

@@ -116,46 +118,17 @@ jobs:
echo "End of the processes"
else
echo "A problem happened in MSC compilation, no dmg is built"
fi

- name: Transfer binary to external repository
run: |
if [ -z "$MSC_TOKEN" ]; then
echo "MSC_TOKEN is not set"
exit 1
fi

OWNER="Inria-Asclepios"
REPO="msc_binaries"
ASSET_NAME="MUSICardio.dmg"
NEW_BINARY_PATH="MUSICardio.dmg"

# Get the release and asset (binary) ID
RELEASE_INFO=$(curl -s -H "Authorization: Bearer $MSC_TOKEN" \
"https://api.github.com/repos/$OWNER/$REPO/releases/latest")
echo "RELEASE_INFO: $RELEASE_INFO"
RELEASE_ID=$(echo $RELEASE_INFO | jq -r '.id')
ASSET_ID=$(echo $RELEASE_INFO | jq -r --arg NAME "$ASSET_NAME" '.assets[] | select(.name == $NAME) | .id')

if [ "$RELEASE_ID" == "null" ] || [ -z "$RELEASE_ID" ]; then
echo "No published release found. Please create a release first."
exit 1
fi

# Remove old asset if exist
if [ "$ASSET_ID" == "null" ] || [ -z "$ASSET_ID" ]; then
echo "No existing asset named $ASSET_NAME found in the release."
else
curl -X DELETE -H "Authorization: Bearer $MSC_TOKEN" \
"https://api.github.com/repos/$OWNER/$REPO/releases/assets/$ASSET_ID"
echo "Asset $ASSET_NAME deleted successfully."
fi

# Upload new binary
curl -X POST -H "Authorization: Bearer $MSC_TOKEN" \
-H "Content-Type: application/octet-stream" \
--data-binary @"$NEW_BINARY_PATH" \
"https://uploads.github.com/repos/$OWNER/$REPO/releases/$RELEASE_ID/assets?name=$ASSET_NAME"

echo "New binary uploaded successfully."


- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_name: Inria-Asclepios/msc_binaries
# A personal access token for the GitHub repository in which the release will be created and edited.
# It is recommended to create the access token with the following scopes: `repo, user, admin:repo_hook`.
repo_token: ${{ secrets.MSC_TOKEN }}
file: ${{github.workspace}}/build/MUSICardio.dmg
asset_name: MUSICardio.dmg
tag: latest
overwrite: true
body: "MUSICardio binaries"