mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-01 11:36:49 +00:00
203cc0a7ef
Github Actions cache doesn't permit to overwrite cache if it does already exist. As a trick to refresh and have fresh ccache pool, delete the ccache cache if it does exist with the help of Github REST API. An additional permission is needed to access this API. Add this permittion to each user of the build workflow. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
name: Build all core packages
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/build.yml'
|
|
- '.github/workflows/packages.yml'
|
|
- 'config/**'
|
|
- 'include/**'
|
|
- 'package/**'
|
|
- 'target/linux/generic/**'
|
|
- 'toolchain/**'
|
|
push:
|
|
paths:
|
|
- '.github/workflows/build.yml'
|
|
- '.github/workflows/packages.yml'
|
|
- 'config/**'
|
|
- 'include/**'
|
|
- 'package/**'
|
|
- 'target/linux/generic/**'
|
|
- 'toolchain/**'
|
|
branches-ignore:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Packages with external toolchain
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
actions: write
|
|
strategy:
|
|
fail-fast: False
|
|
matrix:
|
|
include:
|
|
- target: malta
|
|
subtarget: be
|
|
- target: x86
|
|
subtarget: 64
|
|
uses: ./.github/workflows/build.yml
|
|
with:
|
|
container_name: toolchain
|
|
target: ${{ matrix.target }}
|
|
subtarget: ${{ matrix.subtarget }}
|
|
build_kernel: true
|
|
build_all_kmods: true
|
|
build_all_modules: true
|
|
build_full: true
|
|
|