[DEFCONFIG/ACTIONS] add static uClibc & musl SDK build (#49)

- striped defconfigs with static libs to build working toolchains
- disable PARTED & GDB on static uClibc
- update actions with static toolchains output
This commit is contained in:
Apaczer
2023-10-26 22:58:34 +02:00
committed by GitHub
parent 932f566cc3
commit c8906ecd1e
3 changed files with 293 additions and 0 deletions

View File

@@ -151,3 +151,81 @@ jobs:
name: rootfs (musl)
path: ${{ inputs.submodule || '.' }}/output/images/rootfs.ext4
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
build-sdk-uclibc-static:
runs-on: ubuntu-22.04
env:
FORCE_UNSAFE_CONFIGURE: 1
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v8
with:
overprovision-lvm: true
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-codeql: true
remove-docker-images: true
- uses: actions/checkout@v3
- if: inputs.submodule
run: git submodule update --init --depth 1 -- ${{ inputs.submodule }}
- name: retrieve ccache
uses: actions/cache@v3
with:
path: ~/.buildroot-ccache
key: ${{ inputs.submodule }}uclibc-static-ccache-${{ github.sha }}
restore-keys: |
${{ inputs.submodule }}uclibc-static-ccache-
- name: build
run: |
cd ${{ inputs.submodule || '.' }}
make miyoo_uclibc_static_defconfig
make sdk
- uses: actions/upload-artifact@v3
with:
name: SDK (uclibc_static)
path: ${{ inputs.submodule || '.' }}/output/images/arm-miyoo-linux-uclibcgnueabi_sdk-buildroot.tar.gz
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
build-sdk-musl-static:
runs-on: ubuntu-22.04
env:
FORCE_UNSAFE_CONFIGURE: 1
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v8
with:
overprovision-lvm: true
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-codeql: true
remove-docker-images: true
- uses: actions/checkout@v3
- if: inputs.submodule
run: git submodule update --init --depth 1 -- ${{ inputs.submodule }}
- name: retrieve ccache
uses: actions/cache@v3
with:
path: ~/.buildroot-ccache
key: ${{ inputs.submodule }}musl-static-ccache-${{ github.sha }}
restore-keys: |
${{ inputs.submodule }}musl-static-ccache-
- name: build
run: |
cd ${{ inputs.submodule || '.' }}
make miyoo_musl_static_defconfig
make sdk
- uses: actions/upload-artifact@v3
with:
name: SDK (musl_static)
path: ${{ inputs.submodule || '.' }}/output/images/arm-miyoo-linux-musleabi_sdk-buildroot.tar.gz
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`