From e77c3778395407f7061234a7b8d462698b72115b Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Fri, 21 Feb 2025 19:44:28 +0100 Subject: [PATCH] release: version 0.9.15 (#425) --- .github/workflows/release.yml | 103 ++++------------------------ apps/readest-app/release-notes.json | 8 +++ 2 files changed, 20 insertions(+), 91 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc135b61..64986eeb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,12 @@ name: Release Readest on: workflow_dispatch: + inputs: + test_ubuntu_arm: + description: 'Run only ubuntu-22.04-arm' + required: false + default: true + type: boolean release: types: [published] @@ -59,6 +65,9 @@ jobs: - os: ubuntu-22.04 arch: x86_64 rust_target: x86_64-unknown-linux-gnu + - os: ubuntu-22.04-arm + arch: aarch64 + rust_target: aarch64-unknown-linux-gnu - os: macos-latest arch: aarch64 rust_target: x86_64-apple-darwin,aarch64-apple-darwin @@ -73,7 +82,8 @@ jobs: args: '--target aarch64-pc-windows-msvc --bundles nsis' runs-on: ${{ matrix.config.os }} - timeout-minutes: 25 + timeout-minutes: 30 + if: ${{ github.event.inputs.test_arm_only }} != 'true' || matrix.config.os == 'ubuntu-22.04-arm' steps: - uses: actions/checkout@v4 @@ -118,7 +128,7 @@ jobs: run: cp .env.local apps/readest-app/.env.local - name: install dependencies (ubuntu only) - if: matrix.config.os == 'ubuntu-22.04' + if: contains(matrix.config.os, 'ubuntu') run: | sudo apt-get update sudo apt-get install -y pkg-config libfontconfig-dev libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf @@ -168,95 +178,6 @@ jobs: echo "Uploading $bin_file to GitHub release" gh release upload ${{ needs.get-release.outputs.release_tag }} $bin_file --clobber - build-tauri-linux-arm: - if: false - permissions: - contents: write - runs-on: ubuntu-22.04 - needs: [get-release] - - strategy: - matrix: - arch: [aarch64, armv7l] - include: - - arch: aarch64 - cpu: cortex-a72 - base_image: https://dietpi.com/downloads/images/DietPi_RPi-ARMv8-Bookworm.img.xz - deb: arm64 - appimage: aarch64 - - arch: armv7l - cpu: cortex-a53 - deb: armhfp - appimage: armhf - base_image: https://dietpi.com/downloads/images/DietPi_RPi-ARMv7-Bookworm.img.xz - - steps: - - uses: actions/checkout@v4 - - - name: initialize git submodules - run: git submodule update --init --recursive - - - name: create .env.local file for Next.js - run: | - echo "NEXT_PUBLIC_POSTHOG_KEY=${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }}" >> .env.local - echo "NEXT_PUBLIC_POSTHOG_HOST=${{ secrets.NEXT_PUBLIC_POSTHOG_HOST }}" >> .env.local - echo "NEXT_PUBLIC_SUPABASE_URL=${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}" >> .env.local - echo "NEXT_PUBLIC_SUPABASE_ANON_KEY=${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}" >> .env.local - echo "NEXT_PUBLIC_APP_PLATFORM=tauri" >> .env.local - - - name: copy .env.local to apps/readest-app - run: cp .env.local apps/readest-app/.env.local - - - name: cache rust build artifacts - uses: Swatinem/rust-cache@v2 - with: - cache-on-failure: true - - - name: build app - uses: pguyot/arm-runner-action@v2.6.5 - with: - base_image: ${{ matrix.base_image }} - cpu: ${{ matrix.cpu }} - bind_mount_repository: true - image_additional_mb: 10240 - optimize_image: no - #exit_on_fail: no - commands: | - # Prevent Rust from complaining about $HOME not matching eid home - export HOME=/root - - # Workaround to CI worker being stuck on Updating crates.io index - export CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse - - # Install setup prerequisites - apt-get update -y --allow-releaseinfo-change - apt-get autoremove -y - apt-get install -y --no-install-recommends --no-install-suggests pkg-config libfontconfig-dev curl libwebkit2gtk-4.1-dev build-essential libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf libfuse2 file - curl https://sh.rustup.rs -sSf | sh -s -- -y - . "$HOME/.cargo/env" - curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - apt-get install -y nodejs - - npm install -g pnpm@latest-10 - - # Install frontend dependencies - pnpm install - - # Copy pdfjs-dist to public directory - pnpm --filter @readest/readest-app setup-pdfjs - - # Build the application - pnpm tauri build - - - name: upload arm bundles - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - shell: bash - run: | - version=${{ needs.get-release.outputs.release_version }} - gh release upload ${{ needs.get-release.outputs.release_tag }} target/release/bundle/deb/Readest_${version}_${{ matrix.deb }}.deb --clobber - gh release upload ${{ needs.get-release.outputs.release_tag }} target/release/bundle/appimage/Readest_${version}_${{ matrix.appimage }}.AppImage --clobber - update-release: permissions: contents: write diff --git a/apps/readest-app/release-notes.json b/apps/readest-app/release-notes.json index 30da1844..0ce58fef 100644 --- a/apps/readest-app/release-notes.json +++ b/apps/readest-app/release-notes.json @@ -1,5 +1,13 @@ { "releases": { + "0.9.15": { + "date": "2025-02-21", + "notes": [ + "Fix hardcoded font color from calibre", + "Fix scroll to current TOC item when toggling sidebar", + "Various fixes and enhancements on iOS platform" + ] + }, "0.9.13": { "date": "2025-02-19", "notes": [