2022-08-07 18:46:11 +02:00
|
|
|
name: Build all core packages
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2022-12-04 20:58:11 +01:00
|
|
|
- '.github/workflows/build.yml'
|
2022-08-07 18:46:11 +02:00
|
|
|
- '.github/workflows/packages.yml'
|
|
|
|
- 'config/**'
|
|
|
|
- 'include/**'
|
|
|
|
- 'package/**'
|
|
|
|
- 'target/linux/generic/**'
|
|
|
|
- 'toolchain/**'
|
|
|
|
push:
|
|
|
|
paths:
|
2022-12-04 20:58:11 +01:00
|
|
|
- '.github/workflows/build.yml'
|
2022-08-07 18:46:11 +02:00
|
|
|
- '.github/workflows/packages.yml'
|
|
|
|
- 'config/**'
|
|
|
|
- 'include/**'
|
|
|
|
- 'package/**'
|
|
|
|
- 'target/linux/generic/**'
|
|
|
|
- 'toolchain/**'
|
2023-05-25 13:52:03 +02:00
|
|
|
branches-ignore:
|
|
|
|
- master
|
2022-08-07 18:46:11 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-01-11 13:52:38 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
|
2022-08-07 18:46:11 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
2022-12-08 14:59:40 +01:00
|
|
|
name: Build Packages with external toolchain
|
2022-11-01 19:10:01 +01:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: read
|
2023-05-28 02:55:26 +02:00
|
|
|
actions: write
|
2022-08-07 18:46:11 +02:00
|
|
|
strategy:
|
|
|
|
fail-fast: False
|
|
|
|
matrix:
|
|
|
|
include:
|
2023-05-22 16:47:08 +02:00
|
|
|
- target: malta
|
|
|
|
subtarget: be
|
|
|
|
- target: x86
|
|
|
|
subtarget: 64
|
2022-11-01 19:10:01 +01:00
|
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
with:
|
2022-12-17 15:07:28 +01:00
|
|
|
container_name: toolchain
|
2022-11-01 19:10:01 +01:00
|
|
|
target: ${{ matrix.target }}
|
2023-05-22 16:47:08 +02:00
|
|
|
subtarget: ${{ matrix.subtarget }}
|
2022-12-07 14:44:34 +01:00
|
|
|
build_kernel: true
|
2022-11-01 19:10:01 +01:00
|
|
|
build_all_kmods: true
|
|
|
|
build_all_modules: true
|
|
|
|
build_full: true
|
2023-05-28 03:12:54 +02:00
|
|
|
ccache_type: packages
|
2023-05-30 18:57:42 +02:00
|
|
|
upload_ccache_cache: ${{ github.repository_owner == 'openwrt' }}
|
|
|
|
|
|
|
|
upload-ccache-cache-in-s3:
|
|
|
|
if: github.event_name == 'push' && github.repository_owner == 'openwrt'
|
|
|
|
name: Upload ccache cache to s3
|
|
|
|
needs: build
|
|
|
|
strategy:
|
|
|
|
fail-fast: False
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- target: malta
|
|
|
|
subtarget: be
|
|
|
|
- target: x86
|
|
|
|
subtarget: 64
|
|
|
|
secrets:
|
|
|
|
s3_access_key: ${{ secrets.GCS_S3_ACCESS_KEY }}
|
|
|
|
s3_secret_key: ${{ secrets.GCS_S3_SECRET_KEY }}
|
|
|
|
uses: ./.github/workflows/upload-file-s3.yml
|
|
|
|
with:
|
|
|
|
endpoint: https://storage.googleapis.com
|
|
|
|
bucket: openwrt-ci-cache
|
|
|
|
download_id: ${{ matrix.target }}-${{ matrix.subtarget }}-ccache-cache
|
|
|
|
filename: ccache-packages-${{ matrix.target }}-${{ matrix.subtarget }}.tar
|
2022-08-07 18:46:11 +02:00
|
|
|
|