Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup build #26

Merged
merged 2 commits into from
Mar 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 12 additions & 43 deletions .github/workflows/rootfs.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Build Root Filesystem

name: Buildroot
on:
push:
pull_request:
Expand All @@ -19,31 +18,16 @@ jobs:
- 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/miyoo-cfw-*.img
key: ${{ steps.cache-key.outputs.key }}
id: cache


- name: retrieve ccache
uses: actions/cache@v3
with:
path: ~/.buildroot-ccache
key: ${{ inputs.submodule }}-uclibc-ccache-${{ github.sha }}
restore-keys: |
${{ inputs.submodule }}-uclibc-ccache-

- 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
Expand All @@ -56,25 +40,25 @@ jobs:
sudo apt update && sudo apt install -y python3-matplotlib python3-numpy
make graph-build

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: build image (uClibc)
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-*.img
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: SDK (uClibc)
path: ${{ inputs.submodule || '.' }}/output/images/arm-miyoo-linux-uclibcgnueabi_sdk-buildroot.tar.gz
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: build-graphs (uClibc)
path: ${{ inputs.submodule || '.' }}/output/graphs/
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: rootfs (uClibc)
path: ${{ inputs.submodule || '.' }}/output/images/rootfs.ext4
Expand All @@ -88,20 +72,6 @@ jobs:
- 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/miyoo-cfw-*.img
key: ${{ steps.cache-key.outputs.key }}
id: cache

- name: retrieve ccache
uses: actions/cache@v3
Expand All @@ -112,7 +82,6 @@ jobs:
${{ inputs.submodule }}-musl-ccache-

- 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
Expand All @@ -125,26 +94,26 @@ jobs:
sudo apt update && sudo apt install -y python3-matplotlib python3-numpy
make graph-build

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: build image (musl)
path: ${{ inputs.submodule || '.' }}/output/images/miyoo-cfw-*.img
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: SDK (musl)
path: ${{ inputs.submodule || '.' }}/output/images/arm-miyoo-linux-musleabi_sdk-buildroot.tar.gz
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: build-graphs (musl)
path: ${{ inputs.submodule || '.' }}/output/graphs/
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: rootfs (musl)
path: ${{ inputs.submodule || '.' }}/output/images/rootfs.ext4
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`
if-no-files-found: error # 'error', 'warn', 'ignore'; defaults to `warn`