Merge pull request #11 from tiopex/master

Update defconfigs, add generate uclibc version
This commit is contained in:
tiopex
2023-03-12 10:27:44 +01:00
committed by GitHub
3 changed files with 4687 additions and 498 deletions

View File

@@ -11,10 +11,8 @@ on:
type: string type: string
jobs: jobs:
rootfs: rootfs-uclibc:
runs-on: ubuntu-20.04 runs-on: ubuntu-22.04
container:
image: miyoocfw/toolchain:master
env: env:
FORCE_UNSAFE_CONFIGURE: 1 FORCE_UNSAFE_CONFIGURE: 1
steps: steps:
@@ -40,12 +38,66 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
run: | run: |
cd ${{ inputs.submodule || '.' }} cd ${{ inputs.submodule || '.' }}
make miyoo_defconfig apt update && apt install -y wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev cpio rsync subversion
make miyoo_uclibc_defconfig
make make
cd output/images/ cd /opt
tar cf sdk.tar miyoo
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: rootfs.tar.xz name: rootfs (uClibc)
path: ${{ inputs.submodule || '.' }}/output/images/rootfs.tar.xz path: ${{ inputs.submodule || '.' }}/output/images/rootfs.tar.xz
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn` if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
- uses: actions/upload-artifact@v2
with:
name: SDK (uClibc)
path: /opt/sdk.tar
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
rootfs-musl:
runs-on: ubuntu-22.04
env:
FORCE_UNSAFE_CONFIGURE: 1
steps:
- uses: actions/checkout@v3
- if: inputs.submodule
run: git submodule update --init --depth 1 -- ${{ inputs.submodule }}
- name: Generate cache key
if: inputs.submodule
id: cache-key
run: |
cd ${{ inputs.submodule }}
echo "::set-output name=key::${{ inputs.submodule }}-$(git rev-parse --short HEAD)"
- uses: actions/cache@v3
if: inputs.submodule
with:
path: ${{ inputs.submodule || '.' }}/output/images/rootfs.tar.xz
key: ${{ steps.cache-key.outputs.key }}
id: cache
- name: build
if: steps.cache.outputs.cache-hit != 'true'
run: |
cd ${{ inputs.submodule || '.' }}
apt update && apt install -y wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev cpio rsync subversion
make miyoo_defconfig
make
cd /opt
tar cf sdk.tar miyoo
- uses: actions/upload-artifact@v2
with:
name: rootfs (musl)
path: ${{ inputs.submodule || '.' }}/output/images/rootfs.tar.xz
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
- uses: actions/upload-artifact@v2
with:
name: SDK (musl)
path: /opt/sdk.tar
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff