Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Dec 10, 2024
1 parent bfd2950 commit 17bb211
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/build_centos7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ jobs:
- name: Upload .tar.gz
uses: actions/upload-artifact@v4
with:
path: archive/*.tar.gz
path: archive/single/*.tar.gz

- name: Upload .tar.gz
uses: actions/upload-artifact@v4
with:
path: archive/multiple/*.tar.gz
#####################
userguide:
if: github.event_name == 'release' && github.event.action == 'created'
Expand Down
7 changes: 4 additions & 3 deletions docker/centos7-build
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,15 @@ RUN XPANSION_VERSION=$(cat /workspace/antares-xpansion/antares-version.json |
cd .. &&\
ARCHIVE_NAME=antaresXpansion-$XPANSION_VERSION-$LSB_RELEASE_ID_SHORT-$LSB_RELEASE_VERSION_SHORT-single-file.tar.gz && \
tar -czf $ARCHIVE_NAME -C _install . && \
mkdir archive && \
mv $ARCHIVE_NAME archive/
mkdir -p archive/single-binary && \
mv $ARCHIVE_NAME archive/single

RUN XPANSION_VERSION=$(cat /workspace/antares-xpansion/antares-version.json | jq -r '."antares_xpansion_version"' ) && \
cd _build && \
export FILE_NAME="antaresXpansion-$XPANSION_VERSION-CentOS-7.9.2009" && \
cpack -G TGZ -D CPACK_PACKAGE_FILE_NAME=$FILE_NAME && \
cd .. && \
mv _build/${FILE_NAME}.tar.gz archive/
mkdir -p archive/multiple \
mv _build/${FILE_NAME}.tar.gz archive/multiple


0 comments on commit 17bb211

Please sign in to comment.