Skip to content

Mixed up -r and -p #102

Mixed up -r and -p

Mixed up -r and -p #102

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
kindletool:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
if: steps.cache-kindletool.outputs.cache-hit != 'true'
with:
repository: NiLuJe/KindleTool
- name: Cache Kindletool
id: cache-kindletool
uses: actions/cache@v4
with:
path: KindleTool
key: ${{ runner.os }}-kindletool-${{ hashFiles('KindleTool/**') }}
- name: Compile KindleTool
if: steps.cache-kindletool.outputs.cache-hit != 'true'
run: |
sudo apt-get install -y zlib1g-dev libarchive-dev nettle-dev
make
- uses: actions/upload-artifact@v4
with:
name: kindletool
path: KindleTool/Release/kindletool
build:
runs-on: ubuntu-latest
needs: kindletool
steps:
- name: Setup
run: sudo apt-get install meson
- name: Download toolchain
run: |
wget -q https://github.com/koreader/koxtoolchain/releases/latest/download/kindlepw2.tar.gz -O - | tar -xzf - -C ~
wget -q https://github.com/koreader/koxtoolchain/releases/latest/download/kindlehf.tar.gz -O - | tar -xzf - -C ~
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Remove old Kindletool
run: rm -f ./utils/kindletool
- uses: actions/download-artifact@v4
with:
name: kindletool
path: ./utils/
- name: Cache Kindle firmware
id: build-cache
uses: actions/cache@v4
with:
path: ./build_cache
key: ${{ runner.os }}-build-cache
- name: build
run: |
chmod 755 ./utils/kindletool
chown -R $USER: ./utils/
sh ./build.sh
- uses: actions/upload-artifact@v4
with:
name: KAHT_BUILD_DEV
path: build/