mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
Fix CI
This commit is contained in:
31
.github/workflows/build-aarch64-emu-libretro.yml
vendored
31
.github/workflows/build-aarch64-emu-libretro.yml
vendored
@@ -30,6 +30,9 @@ jobs:
|
||||
CACHE_KEY: ccache-aarch64-${{ inputs.DEVICE }}-emu-libretro-${{ github.sha }}
|
||||
DISABLE_COLORS: yes
|
||||
CCACHE_COMPILERCHECK: content
|
||||
CCACHE_COMPRESS: 1
|
||||
CCACHE_COMPRESSLEVEL: 6
|
||||
CCACHE_SLOPPINESS: file_macro,time_macros,include_file_mtime
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: libenc/maximize-build-space@add-btrfs-support
|
||||
@@ -52,7 +55,7 @@ jobs:
|
||||
id: retrieve-cache
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-emu-libretro-${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache-aarch64-${{ inputs.DEVICE }}-emu-libretro-${{ github.sha }}
|
||||
@@ -83,7 +86,7 @@ jobs:
|
||||
- name: Extract artifact qt6
|
||||
if: ${{ inputs.DEVICE == 'RK3399' || inputs.DEVICE == 'RK3566' || inputs.DEVICE == 'RK3588' || inputs.DEVICE == 'S922X' || inputs.DEVICE == 'SM8250' || inputs.DEVICE == 'SM8550' }}
|
||||
run: |
|
||||
tar --zstd -xf build.qt6.tar.zst
|
||||
sudo tar --zstd -xf build.qt6.tar.zst --same-owner
|
||||
|
||||
- name: Clean up compressed qt6 file
|
||||
if: ${{ inputs.DEVICE == 'RK3399' || inputs.DEVICE == 'RK3566' || inputs.DEVICE == 'RK3588' || inputs.DEVICE == 'S922X' || inputs.DEVICE == 'SM8250' || inputs.DEVICE == 'SM8550' }}
|
||||
@@ -103,7 +106,7 @@ jobs:
|
||||
|
||||
- name: Expand ccache
|
||||
run: |
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d .ccache-aarch64 -M 20G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache -M 20G
|
||||
|
||||
- name: Build
|
||||
uses: corrupt952/actions-retry-command@v1.0.7
|
||||
@@ -123,7 +126,9 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: output.logs (${{ inputs.DEVICE }}-aarch64-emu-libretro)
|
||||
path: output.log
|
||||
path: |
|
||||
output.log
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.threads/logs/
|
||||
|
||||
- name: Delete used cache
|
||||
if: ${{ steps.retrieve-cache.outputs.cache-hit && steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
@@ -137,9 +142,9 @@ jobs:
|
||||
|
||||
- name: Clean ccache
|
||||
run: |
|
||||
export CCACHE_DIR=.ccache-aarch64
|
||||
export CCACHE_DIR=./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 1.3G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 1.2G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -c
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -z
|
||||
@@ -148,23 +153,17 @@ jobs:
|
||||
if: ${{ ! steps.retrieve-cache.outputs.cache-hit || steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-emu-libretro-${{ github.sha }}
|
||||
|
||||
- name: Print space
|
||||
run: df -h
|
||||
|
||||
- name: Compress directory
|
||||
run: |
|
||||
run: |
|
||||
sudo tar --remove-files -cf - \
|
||||
$(find build.*.aarch64 -type f \( -name '.rocknix-package' -o -name '.rocknix-unpack' \)) \
|
||||
$(find build.*.aarch64 -mindepth 1 -maxdepth 1 -name '.*') \
|
||||
$(find build.*.aarch64 -mindepth 2 -maxdepth 2 -type d \( \
|
||||
-name '.install_*' \
|
||||
\)) \
|
||||
$(find build.*.aarch64 -mindepth 2 -maxdepth 2 -type d \( \
|
||||
-name '.aarch64*' \
|
||||
\)) | split -b 2G - build.emu-libretro.tar.part
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/install_* \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.stamps | split -b 2G - build.emu-libretro.tar.part
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
@@ -27,6 +27,9 @@ jobs:
|
||||
CACHE_KEY: ccache-aarch64-${{ inputs.DEVICE }}-emu-standalone-${{ github.sha }}
|
||||
DISABLE_COLORS: yes
|
||||
CCACHE_COMPILERCHECK: content
|
||||
CCACHE_COMPRESS: 1
|
||||
CCACHE_COMPRESSLEVEL: 6
|
||||
CCACHE_SLOPPINESS: file_macro,time_macros,include_file_mtime
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: AdityaGarg8/remove-unwanted-software@v4.1
|
||||
@@ -71,7 +74,7 @@ jobs:
|
||||
id: retrieve-cache
|
||||
uses: buildjet/cache/restore@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-emu-standalone-${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache-aarch64-${{ inputs.DEVICE }}-emu-standalone-${{ github.sha }}
|
||||
@@ -102,7 +105,7 @@ jobs:
|
||||
- name: Extract artifact qt6
|
||||
if: ${{ inputs.DEVICE == 'RK3399' || inputs.DEVICE == 'RK3566' || inputs.DEVICE == 'RK3588' || inputs.DEVICE == 'S922X' || inputs.DEVICE == 'SM8250' || inputs.DEVICE == 'SM8550' }}
|
||||
run: |
|
||||
tar --zstd -xf build.qt6.tar.zst
|
||||
sudo tar --zstd -xf build.qt6.tar.zst --same-owner
|
||||
|
||||
- name: Clean up compressed qt6 file
|
||||
if: ${{ inputs.DEVICE == 'RK3399' || inputs.DEVICE == 'RK3566' || inputs.DEVICE == 'RK3588' || inputs.DEVICE == 'S922X' || inputs.DEVICE == 'SM8250' || inputs.DEVICE == 'SM8550' }}
|
||||
@@ -110,7 +113,7 @@ jobs:
|
||||
|
||||
- name: Expand ccache
|
||||
run: |
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d .ccache-aarch64 -M 20G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache -M 20G
|
||||
|
||||
- name: Build
|
||||
uses: corrupt952/actions-retry-command@v1.0.7
|
||||
@@ -130,7 +133,9 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: output.logs (${{ inputs.DEVICE }}-aarch64-emu-standalone)
|
||||
path: output.log
|
||||
path: |
|
||||
output.log
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.threads/logs/
|
||||
|
||||
- name: Delete used cache
|
||||
if: ${{ steps.retrieve-cache.outputs.cache-hit && steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
@@ -140,9 +145,9 @@ jobs:
|
||||
|
||||
- name: Clean ccache
|
||||
run: |
|
||||
export CCACHE_DIR=.ccache-aarch64
|
||||
export CCACHE_DIR=./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 1.5G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 1.4G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -c
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -z
|
||||
@@ -151,7 +156,7 @@ jobs:
|
||||
if: ${{ ! steps.retrieve-cache.outputs.cache-hit || steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
uses: buildjet/cache/save@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-emu-standalone-${{ github.sha }}
|
||||
|
||||
- name: Print space
|
||||
@@ -160,17 +165,9 @@ jobs:
|
||||
- name: Compress directory
|
||||
run: |
|
||||
sudo tar --remove-files -cf - \
|
||||
$(find build.*.aarch64 -type f \( -name '.rocknix-package' -o -name '.rocknix-unpack' \)) \
|
||||
$(find build.*.aarch64 -mindepth 1 -maxdepth 1 -name '.*') \
|
||||
$(find build.*.aarch64 -mindepth 2 -maxdepth 2 -type d \( \
|
||||
-name '.install_*' \
|
||||
\)) \
|
||||
$(find build.*.aarch64 -mindepth 2 -maxdepth 2 -type d \( \
|
||||
-name '.aarch64*' \
|
||||
\)) \
|
||||
$(find build.*.aarch64/linux-* -maxdepth 1 -type f -name 'System.map') \
|
||||
$(find build.*.aarch64/linux-*/arch/arm64/boot/ -maxdepth 1 -type f -name 'Image') \
|
||||
build.*.aarch64/toolchain | split -b 2G - build.emu-standalone.tar.part
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/install_* \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.stamps \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain | split -b 2G - build.emu-standalone.tar.part
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
47
.github/workflows/build-aarch64-image.yml
vendored
47
.github/workflows/build-aarch64-image.yml
vendored
@@ -32,6 +32,9 @@ jobs:
|
||||
CACHE_KEY: ccache-aarch64-${{ inputs.DEVICE }}-image-${{ github.sha }}
|
||||
DISABLE_COLORS: yes
|
||||
CCACHE_COMPILERCHECK: content
|
||||
CCACHE_COMPRESS: 1
|
||||
CCACHE_COMPRESSLEVEL: 6
|
||||
CCACHE_SLOPPINESS: file_macro,time_macros,include_file_mtime
|
||||
CHEEVOS_DEV_LOGIN: ${{ secrets.CHEEVOS_DEV_LOGIN }}
|
||||
GAMESDB_APIKEY: ${{ secrets.GAMESDB_APIKEY }}
|
||||
SCREENSCRAPER_DEV_LOGIN: ${{ secrets.SCREENSCRAPER_DEV_LOGIN }}
|
||||
@@ -77,16 +80,6 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Retrieve ccache image
|
||||
id: retrieve-cache
|
||||
uses: buildjet/cache/restore@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-image-${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache-aarch64-${{ inputs.DEVICE }}-image-${{ github.sha }}
|
||||
ccache-aarch64-${{ inputs.DEVICE }}-image-
|
||||
|
||||
- name: Download arm (${{ inputs.DEVICE }})
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -98,7 +91,7 @@ jobs:
|
||||
|
||||
- name: Clean up compressed arm file
|
||||
run: rm build.arm.tar.zst
|
||||
|
||||
|
||||
- name: Download emu-libretro (${{ inputs.DEVICE }})
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -127,7 +120,7 @@ jobs:
|
||||
|
||||
- name: Expand ccache
|
||||
run: |
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d .ccache-aarch64 -M 1G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache -M 1G
|
||||
# clean to rebuild retroarch with 32bit enabled
|
||||
- name: Clean retroarch
|
||||
run: |
|
||||
@@ -155,7 +148,9 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: output.logs (${{ inputs.DEVICE }}-aarch64-image)
|
||||
path: output.log
|
||||
path: |
|
||||
output.log
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.threads/logs/
|
||||
|
||||
- name: Delete used cache
|
||||
if: ${{ steps.retrieve-cache.outputs.cache-hit && steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
@@ -163,22 +158,6 @@ jobs:
|
||||
with:
|
||||
cache_key: ${{ steps.retrieve-cache.outputs.cache-matched-key }}
|
||||
|
||||
- name: Clean ccache
|
||||
run: |
|
||||
export CCACHE_DIR=.ccache-aarch64
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 50M
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -c
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -z
|
||||
|
||||
- name: Save ccache
|
||||
if: ${{ ! steps.retrieve-cache.outputs.cache-hit || steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
uses: buildjet/cache/save@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-image-${{ github.sha }}
|
||||
|
||||
- name: Get date
|
||||
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
|
||||
|
||||
@@ -186,8 +165,8 @@ jobs:
|
||||
with:
|
||||
name: ROCKNIX-image-${{ inputs.DEVICE }}-${{ env.DATE }}
|
||||
path: |
|
||||
release/ROCKNIX-*.img.gz
|
||||
release/ROCKNIX-*.img.gz.sha256
|
||||
target/ROCKNIX-*.img.gz
|
||||
target/ROCKNIX-*.img.gz.sha256
|
||||
compression-level: 0
|
||||
if-no-files-found: error
|
||||
|
||||
@@ -195,7 +174,7 @@ jobs:
|
||||
with:
|
||||
name: ROCKNIX-update-${{ inputs.DEVICE }}-${{ env.DATE }}
|
||||
path: |
|
||||
release/ROCKNIX-*.tar
|
||||
release/ROCKNIX-*.tar.sha256
|
||||
target/ROCKNIX-*.tar
|
||||
target/ROCKNIX-*.tar.sha256
|
||||
compression-level: 0
|
||||
if-no-files-found: error
|
||||
if-no-files-found: error
|
||||
|
||||
19
.github/workflows/build-aarch64-mame-lr.yml
vendored
19
.github/workflows/build-aarch64-mame-lr.yml
vendored
@@ -24,6 +24,9 @@ jobs:
|
||||
CACHE_KEY: ccache-aarch64-${{ inputs.DEVICE }}-mame-${{ github.sha }}
|
||||
DISABLE_COLORS: yes
|
||||
CCACHE_COMPILERCHECK: content
|
||||
CCACHE_COMPRESS: 1
|
||||
CCACHE_COMPRESSLEVEL: 6
|
||||
CCACHE_SLOPPINESS: file_macro,time_macros,include_file_mtime
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: libenc/maximize-build-space@add-btrfs-support
|
||||
@@ -46,7 +49,7 @@ jobs:
|
||||
id: retrieve-cache
|
||||
uses: buildjet/cache/restore@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-mame-${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache-aarch64-${{ inputs.DEVICE }}-mame-${{ github.sha }}
|
||||
@@ -66,7 +69,7 @@ jobs:
|
||||
|
||||
- name: Expand ccache
|
||||
run: |
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d .ccache-aarch64 -M 20G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache -M 20G
|
||||
|
||||
- name: Build
|
||||
uses: corrupt952/actions-retry-command@v1.0.7
|
||||
@@ -86,7 +89,9 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: output.logs (${{ inputs.DEVICE }}-aarch64-mame-lr)
|
||||
path: output.log
|
||||
path: |
|
||||
output.log
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.threads/logs/
|
||||
|
||||
- name: Delete used cache
|
||||
if: ${{ steps.retrieve-cache.outputs.cache-hit && steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
@@ -96,7 +101,7 @@ jobs:
|
||||
|
||||
- name: Clean ccache
|
||||
run: |
|
||||
export CCACHE_DIR=.ccache-aarch64
|
||||
export CCACHE_DIR=./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 400M
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -c
|
||||
@@ -107,12 +112,14 @@ jobs:
|
||||
if: ${{ ! steps.retrieve-cache.outputs.cache-hit || steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
uses: buildjet/cache/save@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-mame-${{ github.sha }}
|
||||
|
||||
- name: Compress directory
|
||||
run: |
|
||||
tar --zstd -cf build.mame-lr.tar.zst build.*.aarch64/mame-lr-*
|
||||
tar --zstd -cf build.mame-lr.tar.zst \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/install_pkg/mame-lr-* \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.stamps
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
|
||||
22
.github/workflows/build-aarch64-qt6.yml
vendored
22
.github/workflows/build-aarch64-qt6.yml
vendored
@@ -28,6 +28,10 @@ jobs:
|
||||
CACHE_KEY: ccache-aarch64-${{ inputs.DEVICE }}-qt6-${{ github.sha }}
|
||||
DISABLE_COLORS: yes
|
||||
CCACHE_COMPILERCHECK: content
|
||||
CCACHE_COMPRESS: 1
|
||||
CCACHE_COMPRESSLEVEL: 6
|
||||
CCACHE_SLOPPINESS: file_macro,time_macros,include_file_mtime
|
||||
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: libenc/maximize-build-space@add-btrfs-support
|
||||
@@ -50,7 +54,7 @@ jobs:
|
||||
id: retrieve-cache
|
||||
uses: buildjet/cache/restore@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-qt6-${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache-aarch64-${{ inputs.DEVICE }}-qt6-${{ github.sha }}
|
||||
@@ -74,7 +78,7 @@ jobs:
|
||||
|
||||
- name: expand ccache
|
||||
run: |
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d .ccache-aarch64 -M 20G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache -M 20G
|
||||
|
||||
- name: Build
|
||||
uses: corrupt952/actions-retry-command@v1.0.7
|
||||
@@ -95,7 +99,9 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: output.logs (${{ inputs.DEVICE }}-aarch64-qt6)
|
||||
path: output.log
|
||||
path: |
|
||||
output.log
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.threads/logs/
|
||||
|
||||
- name: Delete used cache
|
||||
if: ${{ steps.retrieve-cache.outputs.cache-hit && steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
@@ -105,9 +111,9 @@ jobs:
|
||||
|
||||
- name: Clean ccache
|
||||
run: |
|
||||
export CCACHE_DIR=.ccache-aarch64
|
||||
export CCACHE_DIR=./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 450M
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 800M
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -c
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -z
|
||||
@@ -116,12 +122,12 @@ jobs:
|
||||
if: ${{ ! steps.retrieve-cache.outputs.cache-hit || steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
uses: buildjet/cache/save@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-qt6-${{ github.sha }}
|
||||
|
||||
- name: Compress directory
|
||||
run: |
|
||||
find build.*.aarch64 -mindepth 1 -type d -newer timestamp_before > qt6.txt
|
||||
find ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/ -mindepth 1 -type d -newer timestamp_before > qt6.txt
|
||||
tar --zstd -cf build.qt6.tar.zst -T qt6.txt
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
@@ -129,4 +135,4 @@ jobs:
|
||||
name: qt6 (${{ inputs.DEVICE }})
|
||||
path: build.qt6.tar.zst
|
||||
compression-level: 0
|
||||
if-no-files-found: error
|
||||
if-no-files-found: error
|
||||
|
||||
19
.github/workflows/build-aarch64-toolchain.yml
vendored
19
.github/workflows/build-aarch64-toolchain.yml
vendored
@@ -27,6 +27,9 @@ jobs:
|
||||
CACHE_KEY: ccache-aarch64-${{ inputs.DEVICE }}-toolchain-${{ github.sha }}
|
||||
DISABLE_COLORS: yes
|
||||
CCACHE_COMPILERCHECK: content
|
||||
CCACHE_COMPRESS: 1
|
||||
CCACHE_COMPRESSLEVEL: 6
|
||||
CCACHE_SLOPPINESS: file_macro,time_macros,include_file_mtime
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: libenc/maximize-build-space@add-btrfs-support
|
||||
@@ -49,7 +52,7 @@ jobs:
|
||||
id: retrieve-cache
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-toolchain-${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache-aarch64-${{ inputs.DEVICE }}-toolchain-${{ github.sha }}
|
||||
@@ -73,7 +76,9 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: output.logs (${{ inputs.DEVICE }}-aarch64-toolchain)
|
||||
path: output.log
|
||||
path: |
|
||||
output.log
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.threads/logs/
|
||||
|
||||
- name: Delete used cache
|
||||
if: ${{ steps.retrieve-cache.outputs.cache-hit && steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
@@ -87,7 +92,7 @@ jobs:
|
||||
|
||||
- name: Clean ccache
|
||||
run: |
|
||||
export CCACHE_DIR=.ccache-aarch64
|
||||
export CCACHE_DIR=./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 400M
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -c
|
||||
@@ -98,12 +103,16 @@ jobs:
|
||||
if: ${{ ! steps.retrieve-cache.outputs.cache-hit || steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-toolchain-${{ github.sha }}
|
||||
|
||||
- name: Compress directory
|
||||
run: |
|
||||
tar --zstd -cf build.aarch64-toolchain.tar.zst build.*.aarch64/
|
||||
tar --zstd -cf build.aarch64-toolchain.tar.zst \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/build \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/install_* \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.stamps
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: aarch64-toolchain (${{ inputs.DEVICE }})
|
||||
|
||||
22
.github/workflows/build-aarch64.yml
vendored
22
.github/workflows/build-aarch64.yml
vendored
@@ -26,6 +26,9 @@ jobs:
|
||||
CACHE_KEY: ccache-aarch64-${{ inputs.DEVICE }}-base-${{ github.sha }}
|
||||
DISABLE_COLORS: yes
|
||||
CCACHE_COMPILERCHECK: content
|
||||
CCACHE_COMPRESS: 1
|
||||
CCACHE_COMPRESSLEVEL: 6
|
||||
CCACHE_SLOPPINESS: file_macro,time_macros,include_file_mtime
|
||||
steps:
|
||||
- name: Maximize build space
|
||||
uses: libenc/maximize-build-space@add-btrfs-support
|
||||
@@ -48,7 +51,7 @@ jobs:
|
||||
id: retrieve-cache
|
||||
uses: buildjet/cache/restore@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-base-${{ github.sha }}
|
||||
restore-keys: |
|
||||
ccache-aarch64-${{ inputs.DEVICE }}-base-${{ github.sha }}
|
||||
@@ -68,7 +71,7 @@ jobs:
|
||||
|
||||
- name: Expand ccache
|
||||
run: |
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d .ccache-aarch64 -M 20G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -d ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache -M 1.4G
|
||||
|
||||
- name: Build
|
||||
uses: corrupt952/actions-retry-command@v1.0.7
|
||||
@@ -88,7 +91,9 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: output.logs-${{ inputs.DEVICE }}-aarch64
|
||||
path: output.log
|
||||
path: |
|
||||
output.log
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.threads/logs/
|
||||
|
||||
- name: Delete used cache
|
||||
if: ${{ steps.retrieve-cache.outputs.cache-hit && steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
@@ -98,9 +103,9 @@ jobs:
|
||||
|
||||
- name: Clean ccache
|
||||
run: |
|
||||
export CCACHE_DIR=.ccache-aarch64
|
||||
export CCACHE_DIR=./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 1.4G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -M 1.3G
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -c
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -s -v
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/toolchain/bin/ccache -z
|
||||
@@ -109,7 +114,7 @@ jobs:
|
||||
if: ${{ ! steps.retrieve-cache.outputs.cache-hit || steps.retrieve-cache.outputs.cache-matched-key != env.CACHE_KEY }}
|
||||
uses: buildjet/cache/save@v4
|
||||
with:
|
||||
path: .ccache-aarch64
|
||||
path: ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.ccache
|
||||
key: ccache-aarch64-${{ inputs.DEVICE }}-base-${{ github.sha }}
|
||||
|
||||
- name: Print space
|
||||
@@ -117,10 +122,11 @@ jobs:
|
||||
|
||||
- name: Compress directory
|
||||
run: |
|
||||
sudo tar --remove-files -cf build.aarch64.tar build.*.aarch64/
|
||||
sudo tar --remove-files -cf build.aarch64.tar \
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: aarch64 (${{ inputs.DEVICE }})
|
||||
path: build.aarch64.tar
|
||||
if-no-files-found: error
|
||||
if-no-files-found: error
|
||||
|
||||
15
.github/workflows/build-arm.yml
vendored
15
.github/workflows/build-arm.yml
vendored
@@ -58,22 +58,17 @@ jobs:
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: output.logs (${{ inputs.DEVICE }}-arm)
|
||||
path: output.log
|
||||
path: |
|
||||
output.log
|
||||
./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.threads/logs/
|
||||
|
||||
- name: Compress directory
|
||||
run: |
|
||||
tar --zstd -cf build.arm.tar.zst \
|
||||
$(find build.*.arm -type f \( -name '.rocknix-package' -o -name '.rocknix-unpack' \)) \
|
||||
$(find build.*.arm -mindepth 1 -maxdepth 1 -name '.*') \
|
||||
$(find build.*.arm -mindepth 2 -maxdepth 2 -type d \( \
|
||||
-name '.install_*' \
|
||||
\)) \
|
||||
build.*.arm/toolchain \
|
||||
build.*.arm/box86-* \
|
||||
build.*.arm/image
|
||||
build.ROCKNIX-${{ inputs.DEVICE }}.arm/
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: arm (${{ inputs.DEVICE }})
|
||||
path: build.arm.tar.zst
|
||||
compression-level: 0
|
||||
if-no-files-found: error
|
||||
if-no-files-found: error
|
||||
|
||||
26
.github/workflows/build-nightly.yml
vendored
26
.github/workflows/build-nightly.yml
vendored
@@ -14,7 +14,7 @@ on:
|
||||
|
||||
jobs:
|
||||
set-envs:
|
||||
if: (github.event_name != 'schedule') || (github.repository == 'ROCKNIX/distribution' && github.ref_name == 'dev')
|
||||
if: (github.event_name != 'schedule') || (github.repository == 'ROCKNIX/distribution' && github.ref_name == 'next')
|
||||
runs-on: ubuntu-24.04
|
||||
outputs:
|
||||
NIGHTLY: ${{ github.event_name == 'workflow_dispatch' && inputs.release == true && 'no' || 'yes' }}
|
||||
@@ -30,7 +30,7 @@ jobs:
|
||||
OWNER: ${{ github.repository_owner }}
|
||||
|
||||
build-docker:
|
||||
if: (github.event_name != 'schedule') || (github.repository == 'ROCKNIX/distribution' && github.ref_name == 'dev')
|
||||
if: (github.event_name != 'schedule') || (github.repository == 'ROCKNIX/distribution' && github.ref_name == 'next')
|
||||
name: Docker
|
||||
needs: set-envs
|
||||
uses: ./.github/workflows/build-docker-image.yml
|
||||
@@ -38,7 +38,7 @@ jobs:
|
||||
OWNER_LC: ${{ needs.set-envs.outputs.OWNER_LC }}
|
||||
|
||||
build-devices:
|
||||
if: (github.event_name != 'schedule') || (github.repository == 'ROCKNIX/distribution' && github.ref_name == 'dev')
|
||||
if: (github.event_name != 'schedule') || (github.repository == 'ROCKNIX/distribution' && github.ref_name == 'next')
|
||||
name: Build Devices
|
||||
needs:
|
||||
- set-envs
|
||||
@@ -48,21 +48,21 @@ jobs:
|
||||
matrix:
|
||||
include:
|
||||
- device: RK3326
|
||||
project: Rockchip
|
||||
project: ROCKNIX
|
||||
- device: RK3399
|
||||
project: Rockchip
|
||||
project: ROCKNIX
|
||||
- device: RK3566
|
||||
project: Rockchip
|
||||
project: ROCKNIX
|
||||
- device: RK3588
|
||||
project: Rockchip
|
||||
project: ROCKNIX
|
||||
- device: S922X
|
||||
project: Amlogic
|
||||
project: ROCKNIX
|
||||
- device: H700
|
||||
project: Allwinner
|
||||
project: ROCKNIX
|
||||
- device: SM8250
|
||||
project: Qualcomm
|
||||
project: ROCKNIX
|
||||
- device: SM8550
|
||||
project: Qualcomm
|
||||
project: ROCKNIX
|
||||
uses: ./.github/workflows/build-device.yml
|
||||
secrets: inherit
|
||||
with:
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
OFFICIAL: ${{ needs.set-envs.outputs.OFFICIAL }}
|
||||
|
||||
rerun-failed-jobs:
|
||||
if: always() && !cancelled() && contains(needs.*.result, 'failure') && fromJSON(github.run_attempt) < 3 && github.ref_name == 'dev' && (github.event_name != 'schedule' || github.repository == 'ROCKNIX/distribution')
|
||||
if: always() && !cancelled() && contains(needs.*.result, 'failure') && fromJSON(github.run_attempt) < 3 && github.ref_name == 'next' && (github.event_name != 'schedule' || github.repository == 'ROCKNIX/distribution')
|
||||
needs: build-devices
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
@@ -119,7 +119,7 @@ jobs:
|
||||
if [ $(git rev-list $COMMIT..HEAD --count) -eq 0 ]; then
|
||||
echo "new_commits=false" >> $GITHUB_ENV
|
||||
else
|
||||
COMMIT_MSG=$(printf "Changelog since last nightly:\n\n%s" "$(git log --format="- %s (by %an)" $COMMIT..$GITHUB_SHA | grep -v "Merge pull request")")
|
||||
COMMIT_MSG=$(printf "Changelog since last nightly:\n\n%s" "$(git log --max-count=35 --format="- %s (by %an)" $COMMIT..$GITHUB_SHA | grep -v "Merge pull request")")
|
||||
echo "commit_msg<<EOF" >> "$GITHUB_OUTPUT"
|
||||
echo "$COMMIT_MSG" >> "$GITHUB_OUTPUT"
|
||||
echo "EOF" >> "$GITHUB_OUTPUT"
|
||||
|
||||
@@ -73,5 +73,3 @@
|
||||
# Debug tty path
|
||||
DEBUG_TTY="/dev/ttyS0"
|
||||
|
||||
# ROCKNIX Subdevices
|
||||
SUBDEVICES=$(xmlstarlet sel -t -m "//dtb/${DEVICE}/*[@bootmethod]" -v "name()" -n "${PROJECT_DIR}/${PROJECT}/bootloader/dtb.xml")
|
||||
|
||||
@@ -10,8 +10,7 @@ PKG_GIT_CLONE_BRANCH="3.2"
|
||||
PKG_DEPENDS_TARGET="toolchain zlib libpng libjpeg-turbo gdk-pixbuf gtk3 libaio"
|
||||
PKG_LONGDESC="wxWidgets is a free and open source cross-platform C++ framework for writing advanced GUI applications using native controls."
|
||||
|
||||
post_install() {
|
||||
cp ${PKG_BUILD}/.${TARGET_NAME}/lib/wx/config/gtk3-unicode-3.2 ${SYSROOT_PREFIX}/usr/bin/wx-config
|
||||
sed -i 's#^prefix=.*#prefix='${SYSROOT_PREFIX}/usr'#' ${SYSROOT_PREFIX}/usr/bin/wx-config
|
||||
sed -i 's#^exec_prefix=.*#exec_prefix='${SYSROOT_PREFIX}/usr'#' ${SYSROOT_PREFIX}/usr/bin/wx-config
|
||||
}
|
||||
pre_configure_target(){
|
||||
PKG_CMAKE_OPTS_TARGET+=" -DCMAKE_SYSROOT=${SYSROOT_PREFIX}"
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user