TEST #2
Workflow file for this run
This file contains hidden or 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: GitHubCI | |
| on: | |
| push: | |
| branches: [ "WF-4.19" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: | | |
| sudo apt-get update && sudo apt-get install --no-install-recommends -y -qq --fix-missing \ | |
| git bison flex libxml2 libssl-dev bc zip default-jre python3 python3-pip wget curl cpio bash ccache | |
| - name: Set up ccache | |
| run: | | |
| echo "CCACHE_DIR=${{ github.workspace }}/.ccache" >> $GITHUB_ENV | |
| echo "PATH=/usr/lib/ccache/bin:$PATH" >> $GITHUB_ENV | |
| mkdir -p ${{ github.workspace }}/.ccache | |
| ccache --max-size=5G | |
| - name: Restore ccache from cache | |
| id: cache-ccache-restore | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: ${{ github.workspace }}/.ccache | |
| key: ccache-${{ runner.os }}-${{ github.sha }} | |
| restore-keys: | | |
| ccache-${{ runner.os }}-${{ github.ref_name }} | |
| ccache-${{ runner.os }}- | |
| - name: Display initial ccache stats | |
| run: ccache --show-stats | |
| - name: Build Kernel | |
| run: | | |
| git clone --depth=1 https://ImSpiDy:${{ secrets.MY_SECRET }}@github.com/ImSpiDy/kernel_xiaomi_lavender-4.19 kernel -b zx | |
| cd kernel | |
| bash snx/build.sh --KSU --RDP | |
| - name: Display final ccache stats | |
| run: | | |
| echo "======= FINAL CCACHE STATS =======" | |
| ccache --show-stats | |
| - name: Save ccache to cache | |
| uses: actions/cache/save@v4 | |
| if: always() | |
| with: | |
| path: ${{ github.workspace }}/.ccache | |
| key: ccache-${{ runner.os }}-${{ github.sha }} |