Skip to content

Commit

Permalink
Merge pull request #5 from jubako/fix_workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr authored May 28, 2024
2 parents e2537ae + 521f05e commit 56a783b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/check_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,26 @@ jobs:

- name: Download libzim
run: |
if [[ "${{ matrix.build }}" == "linux" ]]
then
if [[ "${{ matrix.build }}" == "linux" ]]
then
ARCH="x86_64"
ARCH_POST="/x86_64-linux-gnu"
LIBZIM_NAME="libzim.so.9"
else
else
ARCH="arm64"
ARCH_POST=""
LIBZIM_NAME="libzim.9.dylib"
fi
VERSION="9.2.1"
ARCHIVE_NAME="libzim_${{ matrix.build }}-${ARCH}-${VERSION}"
wget "https://download.openzim.org/release/libzim/${ARCHIVE_NAME}.tar.gz"
tar xf ${ARCHIVE_NAME}.tar.gz
ARCHIVE_PATH=$(pwd)/${ARCHIVE_NAME}
LIBZIM_LIB=${ARCHIVE_PATH}/lib${ARCH_POST}
echo "LIBZIM_NAME=$LIBZIM_NAME" >> $GITHUB_ENV
echo "LIBZIM_LIB=$LIBZIM_LIB" >> $GITHUB_ENV
echo "LIBZIM_INCLUDE=${ARCHIVE_PATH}/include" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=${LIBZIM_LIB}:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
fi
VERSION="9.2.1"
ARCHIVE_NAME="libzim_${{ matrix.build }}-${ARCH}-${VERSION}"
wget "https://download.openzim.org/release/libzim/${ARCHIVE_NAME}.tar.gz"
tar xf ${ARCHIVE_NAME}.tar.gz
ARCHIVE_PATH=$(pwd)/${ARCHIVE_NAME}
LIBZIM_LIB=${ARCHIVE_PATH}/lib${ARCH_POST}
echo "LIBZIM_NAME=$LIBZIM_NAME" >> $GITHUB_ENV
echo "LIBZIM_LIB=$LIBZIM_LIB" >> $GITHUB_ENV
echo "LIBZIM_INCLUDE=${ARCHIVE_PATH}/include" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=${LIBZIM_LIB}:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
- name: Build release binary
shell: bash
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,26 +64,26 @@ jobs:

- name: Download libzim
run: |
if [[ "${{ matrix.build }}" == "linux" ]]
then
if [[ "${{ matrix.build }}" == "linux" ]]
then
ARCH="x86_64"
ARCH_POST="/x86_64-linux-gnu"
LIBZIM_NAME="libzim.so.9"
else
else
ARCH="arm64"
ARCH_POST=""
LIBZIM_NAME="libzim.9.dylib"
fi
VERSION="9.2.1"
ARCHIVE_NAME="libzim_${{ matrix.build }}-${ARCH}-${VERSION}"
wget "https://download.openzim.org/release/libzim/${ARCHIVE_NAME}.tar.gz"
tar xf ${ARCHIVE_NAME}.tar.gz
ARCHIVE_PATH=$(pwd)/${ARCHIVE_NAME}
LIBZIM_LIB=${ARCHIVE_PATH}/lib${ARCH_POST}
echo "LIBZIM_NAME=$LIBZIM_NAME" >> $GITHUB_ENV
echo "LIBZIM_LIB=$LIBZIM_LIB" >> $GITHUB_ENV
echo "LIBZIM_INCLUDE=${ARCHIVE_PATH}/include" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=${LIBZIM_LIB}:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
fi
VERSION="9.2.1"
ARCHIVE_NAME="libzim_${{ matrix.build }}-${ARCH}-${VERSION}"
wget "https://download.openzim.org/release/libzim/${ARCHIVE_NAME}.tar.gz"
tar xf ${ARCHIVE_NAME}.tar.gz
ARCHIVE_PATH=$(pwd)/${ARCHIVE_NAME}
LIBZIM_LIB=${ARCHIVE_PATH}/lib${ARCH_POST}
echo "LIBZIM_NAME=$LIBZIM_NAME" >> $GITHUB_ENV
echo "LIBZIM_LIB=$LIBZIM_LIB" >> $GITHUB_ENV
echo "LIBZIM_INCLUDE=${ARCHIVE_PATH}/include" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=${LIBZIM_LIB}:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
- name: Build release binary
shell: bash
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ jobs:

- name: Download libzim
run: |
VERSION="9.2.1"
ARCHIVE_NAME="libzim_linux-x86_64-${VERSION}"
wget "https://download.openzim.org/release/libzim/${ARCHIVE_NAME}.tar.gz"
tar xf ${ARCHIVE_NAME}.tar.gz
ARCHIVE_PATH=$(pwd)/${ARCHIVE_NAME}
LIBZIM_LIB=${ARCHIVE_PATH}/lib/x86_64-linux-gnu
echo "LIBZIM_LIB=$LIBZIM_LIB" >> $GITHUB_ENV
echo "LIBZIM_INCLUDE=${ARCHIVE_PATH}/include" >> $GITHUB_ENV
VERSION="9.2.1"
ARCHIVE_NAME="libzim_linux-x86_64-${VERSION}"
wget "https://download.openzim.org/release/libzim/${ARCHIVE_NAME}.tar.gz"
tar xf ${ARCHIVE_NAME}.tar.gz
ARCHIVE_PATH=$(pwd)/${ARCHIVE_NAME}
LIBZIM_LIB=${ARCHIVE_PATH}/lib/x86_64-linux-gnu
echo "LIBZIM_LIB=$LIBZIM_LIB" >> $GITHUB_ENV
echo "LIBZIM_INCLUDE=${ARCHIVE_PATH}/include" >> $GITHUB_ENV
- name: Publish
env:
Expand Down

0 comments on commit 56a783b

Please sign in to comment.