diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3d94399..2dc249e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,28 +4,28 @@ on: branches: - main paths: - - requirements.txt - - requirements.remote.txt - - '*.py' - - data/** - - codexctl/** - - scripts/** - - github-make-executable.sh - - Makefile - - .github/workflows/main.yml + - requirements.txt + - requirements.remote.txt + - "*.py" + - data/** + - codexctl/** + - scripts/** + - github-make-executable.sh + - Makefile + - .github/workflows/main.yml push: branches: - main paths: - - requirements.txt - - requirements.remote.txt - - '*.py' - - data/** - - codexctl/** - - scripts/** - - github-make-executable.sh - - Makefile - - .github/workflows/main.yml + - requirements.txt + - requirements.remote.txt + - "*.py" + - data/** + - codexctl/** + - scripts/** + - github-make-executable.sh + - Makefile + - .github/workflows/main.yml workflow_dispatch: defaults: @@ -42,6 +42,7 @@ jobs: - ubuntu-latest - windows-latest - macos-latest + - macos-15-intel runs-on: ${{ matrix.os }} steps: - name: Install Apt packages @@ -53,7 +54,7 @@ jobs: packages: libfuse-dev version: 1.0 - name: Install brew packages - if: matrix.os == 'macos-latest' + if: matrix.os == 'macos-latest' || matrix.os == 'macos-15-intel' run: brew install coreutils - name: Checkout the Git repository uses: actions/checkout@v4 @@ -70,8 +71,8 @@ jobs: nuitka_cache: ${{ github.workspace }}/.nuitka - uses: actions/setup-python@v5 with: - python-version: '3.12' - cache: 'pip' + python-version: "3.12" + cache: "pip" cache-dependency-path: | **/requirements*.txt - name: Test codexctl @@ -86,7 +87,7 @@ jobs: nuitka_cache: ${{ github.workspace }}/.nuitka - name: Upload Compilation Report uses: actions/upload-artifact@v4 - if: (success() || failure()) && runner.debug == '1' + if: (success() || failure()) && runner.debug == '1' with: name: ${{ matrix.os }}-compilation-report path: compilation-report.xml @@ -163,9 +164,9 @@ jobs: ./scripts/github-make-executable.sh - name: Upload Compilation Report uses: actions/upload-artifact@v4 - if: runner.debug == '1' + if: runner.debug == '1' with: - name: ${{ matrix.os }}-compilation-report + name: remarkable-compilation-report path: compilation-report.xml if-no-files-found: warn - name: Upload executable @@ -181,24 +182,40 @@ jobs: strategy: matrix: fw_version: - - '2.15.1' - - '3.3.2' + - "2.15.1" + - "3.3.2" # - '3.9.3' steps: - uses: actions/download-artifact@v4 with: path: artifacts name: remarkable + - name: Free up space + run: | + export DEBIAN_FRONTEND="noninteractive" + sudo apt-get autoremove -y + sudo apt-get autoclean -y + sudo rm -rf \ + /usr/lib/jvm \ + /usr/share/dotnet \ + /usr/share/swift \ + /usr/local/.ghcup \ + /usr/local/julia* \ + /usr/local/lib/android \ + /usr/local/share/chromium \ + /opt/microsoft /opt/google \ + /opt/az \ + /usr/local/share/powershell - uses: Eeems-Org/run-in-remarkable-action@v1 with: path: artifacts fw_version: ${{ matrix.fw_version }} run: | chmod +x ./codexctl - ./codexctl download --hardware rm2 --out /tmp toltec + ./codexctl download --hardware rm2 --out /tmp toltec release: name: Release - needs: [remote,device,test_device] + needs: [remote, device, test_device] runs-on: ubuntu-latest if: github.ref == 'refs/heads/main' permissions: diff --git a/requirements.txt b/requirements.txt index 78e5d89..9d856b0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ requests==2.32.4 loguru==0.7.3 -remarkable-update-image==1.3; sys_platform != 'linux' -remarkable-update-fuse==1.3; sys_platform == 'linux' +remarkable-update-image==1.3.1; sys_platform != 'linux' +remarkable-update-fuse==1.3.1; sys_platform == 'linux'