Skip to content

Commit

Permalink
Change preCICE and adapter versions in all packaging files and workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanDesai committed Mar 18, 2024
1 parent ffeda14 commit a4581fd
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ubuntu_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
container: precice/precice:develop
continue-on-error: true
env: # Versioning is "calculix-preciceX_2.YY-Z[...]" with X the major preCICE version, YY the minor CCX version and Z the package version
PACKAGE_NAME: "calculix-precice2_2.20.0-1_amd64"
PACKAGE_NAME: "calculix-precice3_2.20.1-1_amd64"

steps:
- name: Update system
Expand All @@ -45,8 +45,8 @@ jobs:
run: sudo apt install lintian pandoc -y
- name: Create Debian Package
run: |
mkdir -p "packaging/calculix-precice2_2.20.0-1_amd64/usr/bin" &&
cp ./bin/ccx_preCICE ./packaging/calculix-precice2_2.20.0-1_amd64/usr/bin/ccx_preCICE &&
mkdir -p "packaging/calculix-precice3_2.20.1-1_amd64/usr/bin" &&
cp ./bin/ccx_preCICE ./packaging/calculix-precice3_2.20.1-1_amd64/usr/bin/ccx_preCICE &&
cd packaging && pwd && bash ./make_deb.sh ${{matrix.name}}
- name: Store Debian package artifact
uses: actions/upload-artifact@v2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: calculix-precice2
Version: 2.20.0-1
Source: calculix-precice2
Package: calculix-precice3
Version: 2.20.1-1
Source: calculix-precice3
Architecture: amd64
Section: contrib/science
Priority: optional
Expand Down
8 changes: 4 additions & 4 deletions packaging/make_deb.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/bash

DISTRIBUTION="_$1"
ADAPTER_VERSION="2.20.0"
ADAPTER_VERSION="2.20.1"
PACKAGE_VERSION="1"

PACKAGE_FOLDER="calculix-precice2_$ADAPTER_VERSION-${PACKAGE_VERSION}_amd64"
PACKAGE_FOLDER="calculix-precice3_$ADAPTER_VERSION-${PACKAGE_VERSION}_amd64"

# Compress the changelog, strip the binaries
cp changelog.Debian $PACKAGE_FOLDER/usr/share/doc/calculix-precice2/changelog.Debian
cp changelog.Debian $PACKAGE_FOLDER/usr/share/doc/calculix-precice3/changelog.Debian
# Options : --best for best compression, -f for removing file if it was there, -n for no time stamp
gzip --best -f -n $PACKAGE_FOLDER/usr/share/doc/calculix-precice2/changelog.Debian
gzip --best -f -n $PACKAGE_FOLDER/usr/share/doc/calculix-precice3/changelog.Debian
strip --strip-unneeded $PACKAGE_FOLDER/usr/bin/ccx_preCICE

#Compile and compress the manual
Expand Down

0 comments on commit a4581fd

Please sign in to comment.