File tree 7 files changed +20
-12
lines changed 7 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 32
32
if [ "${{ github.event_name }}" = "schedule" ]; then
33
33
echo "GHA_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
34
34
fi
35
+ echo "GHA_REPOSITORY=${{ github.repository }}" >> $GITHUB_ENV
35
36
36
37
- name : Set OSVERS
37
38
run : |
62
63
run : |
63
64
yum update -y
64
65
yum install -y sudo curl
65
- curl https://raw.githubusercontent.com/BioDynaMo/biodynamo /${GHA_BRANCH_NAME}/util/install | bash
66
+ curl https://raw.githubusercontent.com/${GHA_REPOSITORY} /${GHA_BRANCH_NAME}/util/install | bash
66
67
# remove whole BioDynaMo repository to catch errors related to paths pointing into the build dir
67
68
mktemp -d
68
69
find /tmp -iname biodynamo -type d || true
Original file line number Diff line number Diff line change 33
33
sudo ln -s /Applications/Xcode_14.2.app /Applications/Xcode.app
34
34
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
35
35
if : matrix.os == 'macos-12'
36
-
36
+
37
37
- name : Make sure Xcode 15.2 is used on macOS 13 as the default /Application/Xcode.app
38
38
shell : bash
39
39
run : |
@@ -53,12 +53,14 @@ jobs:
53
53
if [ "${{ github.event_name }}" = "schedule" ]; then
54
54
echo "GHA_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
55
55
fi
56
-
56
+
57
+ echo "GHA_REPOSITORY=${{ github.repository}}" >> $GITHUB_ENV
58
+
57
59
- name : Install BioDynaMo
58
60
shell : zsh {0}
59
61
run : |
60
62
brew install curl
61
- curl https://raw.githubusercontent.com/BioDynaMo/biodynamo /${GHA_BRANCH_NAME}/util/install | bash
63
+ curl https://raw.githubusercontent.com/${GHA_REPOSITORY} /${GHA_BRANCH_NAME}/util/install | bash
62
64
# remove whole bidynamo repository to catch errors related to paths pointing into the build dir
63
65
mktemp -d
64
66
find /tmp -iname biodynamo -type d || true
@@ -102,7 +104,7 @@ jobs:
102
104
cmake --build build --parallel --config Release
103
105
104
106
# Don't do this in the `Build BioDynaMo step`, because notebooks might time out in GHA
105
- # runners, while waiting for other targets to be compiled. Run notebooks only on
107
+ # runners, while waiting for other targets to be compiled. Run notebooks only on
106
108
# macOS 10.15 until we managed to compile ROOT for 11.6 again.
107
109
- name : Run notebooks
108
110
shell : zsh {0}
Original file line number Diff line number Diff line change 34
34
echo "GHA_BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV
35
35
fi
36
36
37
+ echo "GHA_REPOSITORY=${{ github.repository }}" >> $GITHUB_ENV
38
+
37
39
- name : Set OSVERS
38
40
run : |
39
41
ID=$(grep -oP '(?<=^ID=).+' /etc/os-release | tr -d '"')
55
57
run : |
56
58
sudo apt update
57
59
sudo apt install -y curl
58
- curl https://raw.githubusercontent.com/BioDynaMo/biodynamo /${GHA_BRANCH_NAME}/util/install | bash
60
+ curl https://raw.githubusercontent.com/${GHA_REPOSITORY} /${GHA_BRANCH_NAME}/util/install | bash
59
61
# remove whole bidynamo repository to catch errors related to paths pointing into the build dir
60
62
mktemp -d
61
63
find /tmp -iname biodynamo -type d || true
@@ -133,7 +135,7 @@ jobs:
133
135
-B build
134
136
cmake --build build --parallel --config Release --target notebooks -- -j1
135
137
if : github.event_name == 'pull_request' && matrix.os == 'ubuntu-22.04'
136
-
138
+
137
139
138
140
- name : Build BioDynaMo
139
141
shell : bash
Original file line number Diff line number Diff line change 24
24
<a href =" https://github.com/BioDynaMo/biodynamo/actions/workflows/centos-system-ci.yml " ><img src =" https://github.com/BioDynaMo/biodynamo/actions/workflows/centos-system-ci.yml/badge.svg " /></a >
25
25
<a href =" https://github.com/BioDynaMo/biodynamo/actions/workflows/macos-system-ci.yml " ><img src =" https://github.com/BioDynaMo/biodynamo/actions/workflows/macos-system-ci.yml/badge.svg " /></a >
26
26
<a href =" https://sonarcloud.io/project/overview?id=BioDynaMo_biodynamo " ><img src =" https://sonarcloud.io/api/project_badges/measure?project=BioDynaMo_biodynamo&metric=alert_status " /></a >
27
- <a href =" https://discord.gg/9hNCbNYwcT " ><img src =" https://img.shields.io/discord/1029690454574370816 " /></a >
27
+ <a href =" https://discord.com/invite/kTcTTNFy " ><img src =" https://img.shields.io/discord/1029690454574370816 " /></a >
28
28
<a href =" https://opensource.org/licenses/Apache-2.0 " ><img src =" https://img.shields.io/badge/License-Apache%202.0-blue.svg " /></a >
29
29
</p >
30
30
Original file line number Diff line number Diff line change @@ -104,4 +104,4 @@ if(NOT BDM_OUT_OF_SOURCE)
104
104
set (LAUNCHER ${CMAKE_BINARY_DIR} /launcher.sh)
105
105
endif ()
106
106
107
- include (${CMAKE_SOURCE_DIR} /cmake/RootMacros.cmake)
107
+ include (${CMAKE_SOURCE_DIR} /cmake/RootMacros.cmake)
Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ SET(osx-14.4-i386-ParaView d2e89df30ab0e2729b28539de37753e09c061b4c434b0a68e8055
62
62
SET (osx-14.4-arm64-ParaView 5e89b785ac0c56bbca31e2ae101a8986953e90227fe42a1ef7adcc70a0ff6fc4)
63
63
SET (osx-14.5-i386-ParaView d2e89df30ab0e2729b28539de37753e09c061b4c434b0a68e80554f7fa617ccb)
64
64
SET (osx-14.5-arm64-ParaView 5e89b785ac0c56bbca31e2ae101a8986953e90227fe42a1ef7adcc70a0ff6fc4)
65
+ SET (osx-14.6-i386-ParaView d2e89df30ab0e2729b28539de37753e09c061b4c434b0a68e80554f7fa617ccb)
66
+ SET (osx-14.6-arm64-ParaView 5e89b785ac0c56bbca31e2ae101a8986953e90227fe42a1ef7adcc70a0ff6fc4)
65
67
SET (osx-xcode-13.1-i386-ROOT be97dd72022c8d082fbe4394f18b55c4920f20b138cfff1b5fc2b41d397ac203)
66
68
SET (osx-xcode-13.1-arm64-ROOT 0a55b91c6df42d152b7943912e134f05c3872a73e73fcc129ee87fd847240ec8)
67
69
SET (osx-xcode-14.1-i386-ROOT 001311608512b24535bb9710b8baf006bd00e9b0595fd6bdf900d28b1e22c395)
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
# Adapted from https://github.com/pyenv/pyenv-installer/
3
- # Usage: curl https://raw.githubusercontent.com/BioDynaMo/biodynamo/master/util/install | bash
3
+ # Usage: curl https://raw.githubusercontent.com/BioDynaMo/biodynamo/master/util/install | bash
4
4
5
5
set -e
6
6
7
7
if [ -z ${BDM_INSTALL} ]; then
8
8
export BDM_INSTALL=v1.04-patches
9
9
fi
10
10
echo " BDM_INSTALL is set to: $BDM_INSTALL "
11
-
11
+
12
12
temp_dir=$( mktemp -d)
13
13
BDM_SRC=" ${temp_dir} /biodynamo"
14
14
mkdir " $BDM_SRC "
@@ -34,8 +34,9 @@ FailedCheckout() {
34
34
35
35
Checkout () {
36
36
# In Github Actions we checkout the branch that is running the install script
37
+ REPO_URL=" ${GITHUB} /${GHA_REPOSITORY} .git"
37
38
if [ ! -z ${GITHUB_ACTIONS+x} ]; then
38
- git clone --branch ${GHA_BRANCH_NAME} " $1 " . || FailedClone " $1 "
39
+ git clone --branch ${GHA_BRANCH_NAME} " $REPO_URL " . || FailedClone " $REPO_URL "
39
40
else
40
41
git clone " $1 " . || FailedClone " $1 "
41
42
git checkout " $BDM_INSTALL " || FailedCheckout " $BDM_INSTALL "
You can’t perform that action at this time.
0 commit comments