Skip to content

Build Image

Build Image #41

Workflow file for this run

name: Build
on: [pull_request, workflow_dispatch]
jobs:
build:
name: Bulid Image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
buildconfig: [ build.config.msm.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: Setup ccache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/out/.ccache
key: ccache-${{ matrix.buildconfig }}-${{ github.run_id }}
restore-keys: ccache-${{ matrix.buildconfig }}
save-always: true
- name: Setup ThinLTO cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/out/.thinlto-cache
key: thinlto-${{ matrix.buildconfig }}-${{ github.run_id }}
restore-keys: thinlto-${{ matrix.buildconfig }}
save-always: true
- 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/"