Fix some gandalf perms #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Update_hotfix_universal | |
path: build/Update_hotfix_universal.bin |