Skip to content

Commit

Permalink
use setup-ci action to download sme_deps_common
Browse files Browse the repository at this point in the history
  • Loading branch information
lkeegan committed Apr 25, 2024
1 parent e4bd3a0 commit 75c5072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: Release Builds
on: push

env:
SME_DEPS_COMMON_VERSION: "2024.04.24"
DUNE_COPASI_VERSION: "master"

jobs:
Expand All @@ -26,6 +25,8 @@ jobs:
shell: ${{ matrix.shell }}
steps:
- uses: spatial-model-editor/[email protected]
with:
sme_deps_common: "2024.04.24"
- uses: actions/checkout@v4
- run: ./build.sh
- uses: actions/upload-artifact@v4
Expand Down
12 changes: 0 additions & 12 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@ echo "DUNE_COPASI_VERSION: ${DUNE_COPASI_VERSION}"
echo "PATH: $PATH"
echo "MSYSTEM: $MSYSTEM"

echo "Downloading static libs for OS: $OS"
wget "https://github.com/spatial-model-editor/sme_deps_common/releases/download/${SME_DEPS_COMMON_VERSION}/sme_deps_common_${OS}.tgz"
tar xf sme_deps_common_${OS}.tgz
# copy libs to desired location: workaround for tar -C / not working on windows
if [[ "$OS" == *"win"* ]]; then
mv c/smelibs /c/
# ls /c/smelibs
else
${SUDO_CMD} mv opt/* /opt/
# ls /opt/smelibs
fi

# export vars for duneopts script to read
export CMAKE_OSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET}"
export CMAKE_INSTALL_PREFIX=${INSTALL_PREFIX}
Expand Down

0 comments on commit 75c5072

Please sign in to comment.