From 521f05e6aee07c7c33f0c4cb749151b38722548f Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 28 May 2024 16:48:25 +0200 Subject: [PATCH] Fix indentation in workflows --- .github/workflows/check_release.yml | 28 ++++++++++++++-------------- .github/workflows/pre_release.yml | 28 ++++++++++++++-------------- .github/workflows/release.yml | 16 ++++++++-------- 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/check_release.yml b/.github/workflows/check_release.yml index a59af05..11554f3 100644 --- a/.github/workflows/check_release.yml +++ b/.github/workflows/check_release.yml @@ -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 diff --git a/.github/workflows/pre_release.yml b/.github/workflows/pre_release.yml index 1900b52..9fa54df 100644 --- a/.github/workflows/pre_release.yml +++ b/.github/workflows/pre_release.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb755c1..57bd82b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: