-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
148 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: cloner-package-linux | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
TERM: linux | ||
VERSION: 2.5.43 | ||
|
||
jobs: | ||
buildroot: | ||
name: cloner_profile | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Clone ingenic-cloner-archives | ||
run: git clone https://github.com/gtxaspec/ingenic-cloner-archives | ||
|
||
- name: Create temporary directory | ||
run: mkdir -p cloner-tmp | ||
|
||
- name: Extract 7zip archives | ||
working-directory: cloner-tmp | ||
run: 7z x ../ingenic-cloner-archives/linux/${{ env.VERSION }}/cloner-${{ env.VERSION }}-ubuntu_alpha.tar.gz.tar.7z.000 | ||
|
||
- name: Extract tar.gz.tar archive | ||
working-directory: cloner-tmp | ||
run: tar -xf cloner-${{ env.VERSION }}-ubuntu_alpha.tar.gz.tar | ||
|
||
- name: Extract tar.gz archive | ||
working-directory: cloner-tmp | ||
run: tar -xf cloner-${{ env.VERSION }}-ubuntu_alpha.tar.gz | ||
|
||
- name: Copy repository data | ||
working-directory: cloner-tmp | ||
run: | | ||
cp -R ../0_Firmware_Root cloner-${{ env.VERSION }}-ubuntu_alpha/ | ||
cp -R ../configs cloner-${{ env.VERSION }}-ubuntu_alpha/ | ||
cp -R ../ddrs cloner-${{ env.VERSION }}-ubuntu_alpha/ | ||
cp -R ../firmwares cloner-${{ env.VERSION }}-ubuntu_alpha/ | ||
- name: Prune unnecessary content | ||
working-directory: cloner-tmp | ||
run: | | ||
rm -rf cloner-${{ env.VERSION }}-ubuntu_alpha/adb | ||
rm -rf cloner-${{ env.VERSION }}-ubuntu_alpha/scripts | ||
rm -rf cloner-${{ env.VERSION }}-ubuntu_alpha/security | ||
rm -rf cloner-${{ env.VERSION }}-ubuntu_alpha/securitytool | ||
rm -rf cloner-${{ env.VERSION }}-ubuntu_alpha/docs | ||
- name: Compress final archive | ||
working-directory: cloner-tmp | ||
run: | | ||
mv cloner-${{ env.VERSION }}-ubuntu_alpha cloner-${{ env.VERSION }}-ubuntu_thingino | ||
tar -cf - cloner-${{ env.VERSION }}-ubuntu_thingino | xz -9 -c > cloner-${{ env.VERSION }}-ubuntu_thingino.tar.xz | ||
echo "ZIP_NAME=$(pwd)/cloner-${{ env.VERSION }}-ubuntu_thingino.tar.xz" >> $GITHUB_ENV | ||
- name: Upload cloner package as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cloner-${{ env.VERSION }}-ubuntu_thingino | ||
path: ${{ env.ZIP_NAME }} | ||
|
||
- name: Upload cloner package | ||
if: github.event_name != 'pull_request' | ||
uses: softprops/action-gh-release@master | ||
with: | ||
tag_name: latest | ||
files: ${{ env.ZIP_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: cloner-package-windows | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
TERM: linux | ||
VERSION: 2.5.43 | ||
|
||
jobs: | ||
buildroot: | ||
name: cloner_profile | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Clone ingenic-cloner-archives | ||
run: git clone https://github.com/gtxaspec/ingenic-cloner-archives | ||
|
||
- name: Create temporary directory | ||
run: mkdir -p cloner-tmp | ||
|
||
- name: Extract 7zip archives | ||
working-directory: cloner-tmp | ||
run: 7z x ../ingenic-cloner-archives/windows/${{ env.VERSION }}/cloner-${{ env.VERSION }}-windows_alpha.zip.tar.7z.000 | ||
|
||
- name: Extract tar.gz.tar archive | ||
working-directory: cloner-tmp | ||
run: tar -xf cloner-${{ env.VERSION }}-windows_alpha.zip.tar | ||
|
||
- name: Extract zip archive | ||
working-directory: cloner-tmp | ||
run: 7z x cloner-${{ env.VERSION }}-windows_alpha.zip | ||
|
||
- name: Copy repository data | ||
working-directory: cloner-tmp | ||
run: | | ||
cp -R ../0_Firmware_Root cloner-${{ env.VERSION }}-windows_alpha/cloner-${{ env.VERSION }}-windows_alpha | ||
cp -R ../configs cloner-${{ env.VERSION }}-windows_alpha/cloner-${{ env.VERSION }}-windows_alpha | ||
cp -R ../ddrs cloner-${{ env.VERSION }}-windows_alpha/cloner-${{ env.VERSION }}-windows_alpha | ||
cp -R ../firmwares cloner-${{ env.VERSION }}-windows_alpha/cloner-${{ env.VERSION }}-windows_alpha | ||
- name: Prune unnecessary content | ||
working-directory: cloner-tmp | ||
run: | | ||
rm -rf cloner-${{ env.VERSION }}-windows_alpha/cloner-${{ env.VERSION }}-windows_alpha/adb | ||
rm -rf cloner-${{ env.VERSION }}-windows_alpha/cloner-${{ env.VERSION }}-windows_alpha/scripts | ||
rm -rf cloner-${{ env.VERSION }}-windows_alpha/cloner-${{ env.VERSION }}-windows_alpha/security | ||
rm -rf cloner-${{ env.VERSION }}-windows_alpha/cloner-${{ env.VERSION }}-windows_alpha/securitytool | ||
rm -rf cloner-${{ env.VERSION }}-windows_alpha/cloner-${{ env.VERSION }}-windows_alpha/docs | ||
- name: Compress final archive | ||
working-directory: cloner-tmp | ||
run: | | ||
mv cloner-${{ env.VERSION }}-windows_alpha cloner-${{ env.VERSION }}-windows_thingino | ||
7z a -t7z -mx=9 cloner-${{ env.VERSION }}-windows_thingino.7z cloner-${{ env.VERSION }}-windows_thingino | ||
echo "ZIP_NAME=$(pwd)/cloner-${{ env.VERSION }}-windows_thingino.tar.xz" >> $GITHUB_ENV | ||
- name: Upload cloner package as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cloner-${{ env.VERSION }}-windows_thingino | ||
path: ${{ env.ZIP_NAME }} | ||
|
||
- name: Upload cloner package | ||
if: github.event_name != 'pull_request' | ||
uses: softprops/action-gh-release@master | ||
with: | ||
tag_name: latest | ||
files: ${{ env.ZIP_NAME }} |
3 changes: 0 additions & 3 deletions
3
.github/workflows/cloner.yaml → .github/workflows/cloner-profiles.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: cloner | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
workflow_dispatch: | ||
|
||
env: | ||
|