From 921885dbfe7a96f6e6ed06eb44dacf42c9367f84 Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Wed, 3 Jan 2024 14:32:04 -0700 Subject: [PATCH] Add remarkable build --- .github/workflows/build.yml | 34 +++++++++++++++++++++++++++++++++- Makefile | 2 ++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c82e344..4eb719e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -107,6 +107,32 @@ jobs: name: rmufuse-alpine path: dist if-no-files-found: error + build-executable-remarkable: + name: Build binary for reMarkable + needs: [test] + runs-on: ubuntu-latest + steps: + - name: Checkout the Git repository + uses: actions/checkout@v4 + - name: Build + uses: Eeems-Org/remarkable-nuitka-build-action@v2 + with: + main: remarkable_update_fuse + python_version: '3.11' + extra_flags: | + --assume-yes-for-downloads + --warn-implicit-exceptions + --warn-unusual-code + --remove-output + --enable-plugin=pylint-warnings + --enable-plugin=upx + --python-flag=-m + --output-filename=rmufuse + - uses: actions/upload-artifact@v3 + with: + name: rmufuse-remarkable + path: dist + if-no-files-found: error build-wheel: name: Build wheel with python ${{ matrix.python }} needs: [test] @@ -186,13 +212,19 @@ jobs: release: name: Add ${{ matrix.artifact }} to release if: github.repository == 'Eeems-Org/remarkable-update-fuse' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags') - needs: [build-executable-ubuntu, build-executable-alpine, build-wheel, build-sdist] + needs: + - build-executable-ubuntu + - build-executable-alpine + - build-executable-remarkable + - build-wheel + - build-sdist runs-on: ubuntu-latest strategy: matrix: artifact: - 'rmufuse-ubuntu' - 'rmufuse-alpine' + - 'rmufuse-remarkable' - 'pip-sdist' - 'pip-wheel-3.11' permissions: diff --git a/Makefile b/Makefile index 7fb143c..20f4a98 100644 --- a/Makefile +++ b/Makefile @@ -89,6 +89,8 @@ dist/rmufuse: dist .venv/bin/activate $(OBJ) NUITKA_CACHE_DIR="$(realpath .)/.nuitka" \ nuitka3 \ --enable-plugin=pylint-warnings \ + --enable-plugin=upx \ + --warn-implicit-exceptions \ --onefile \ --lto=yes \ --assume-yes-for-downloads \