File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build utild
2+
3+ on :
4+ push :
5+ pull_request :
6+ workflow_dispatch :
7+
8+ jobs :
9+ build-kindle :
10+ runs-on : ubuntu-latest
11+ strategy :
12+ matrix :
13+ include :
14+ - kindle_target : kindlepw2
15+ toolchain_arch : arm-kindlepw2-linux-gnueabi
16+ - kindle_target : kindlehf
17+ toolchain_arch : arm-kindlehf-linux-gnueabihf
18+
19+ steps :
20+ - name : Download toolchain (${{ matrix.kindle_target }})
21+ run : |
22+ wget -q https://github.com/KindleModding/koxtoolchain/releases/latest/download/${{ matrix.kindle_target }}.tar.gz -O - | tar -xzf - -C ~
23+
24+ - uses : actions/checkout@v4
25+ with :
26+ repository : KindleModding/kindle-sdk
27+ submodules : recursive
28+ path : kindle-sdk
29+
30+ - name : " Setup kindle-sdk (${{ matrix.kindle_target }})"
31+ run : |
32+ sudo apt-get install -y zlib1g-dev libarchive-dev nettle-dev curl aria2c
33+ sh ./kindle-sdk/gen-sdk.sh ${{ matrix.kindle_target }}
34+
35+ - uses : actions/checkout@v4
36+ with :
37+ submodules : recursive
38+
39+ - name : build (${{ matrix.kindle_target }})
40+ run : |
41+ sudo apt-get install meson
42+ meson setup --cross-file ~/x-tools/${{ matrix.toolchain_arch }}/meson-crosscompile.txt builddir_${{ matrix.kindle_target }}
43+ meson compile -C builddir_${{ matrix.kindle_target }}
44+ ~/x-tools/${{ matrix.toolchain_arch }}/bin/${{ matrix.toolchain_arch }}-strip builddir_${{ matrix.kindle_target }}/src/utild
45+
46+ - uses : actions/upload-artifact@v4
47+ with :
48+ name : utild-${{ matrix.kindle_target }}
49+ path : builddir_${{ matrix.kindle_target }}/src/utild
You can’t perform that action at this time.
0 commit comments