Build Image #37
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: Build | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
build: | |
name: Bulid Image | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
buildconfig: [ build.config.nethunter.veux ] | |
env: | |
KBUILD_BUILD_USER: "actions" | |
KBUILD_BUILD_HOST: "github.com" | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: Setup dependencies | |
run: | | |
./setup_toolchain.sh | |
set -x | |
ccache --set-config=cache_dir=$(pwd)/out/.ccache | |
ccache --set-config=max_size=2G | |
ccache --set-config=compression=false | |
- name: Restore ccache | |
uses: actions/cache/restore@v4 | |
with: | |
path: ${{ github.workspace }}/out/.ccache | |
key: ccache-${{ matrix.buildconfig }} | |
restore-keys: ccache-${{ matrix.buildconfig }} | |
- name: Restore ThinLTO cache | |
uses: actions/cache/restore@v4 | |
with: | |
path: ${{ github.workspace }}/out/.thinlto-cache | |
key: thinlto-${{ matrix.buildconfig }} | |
restore-keys: thinlto-${{ matrix.buildconfig }} | |
- name: Run build | |
run: BUILD_CONFIG=${{ matrix.buildconfig }} build/build.sh CC="ccache clang" | |
- name: Upload zip | |
uses: actions/upload-artifact@v4 | |
with: | |
name: AnyKernel3 | |
path: "AnyKernel3/" | |
- name: Save ccache | |
uses: actions/cache/save@v4 | |
if: always() | |
with: | |
path: ${{ github.workspace }}/out/.ccache | |
key: ccache-${{ matrix.buildconfig }}-${{ github.run_id }} | |
- name: Restore ThinLTO cache | |
uses: actions/cache/save@v4 | |
if: always() | |
with: | |
path: ${{ github.workspace }}/out/.thinlto-cache | |
key: thinlto-${{ matrix.buildconfig }}-${{ github.run_id }} |