File tree Expand file tree Collapse file tree 3 files changed +97
-2
lines changed Expand file tree Collapse file tree 3 files changed +97
-2
lines changed Original file line number Diff line number Diff line change 1111 default : false
1212 type : boolean
1313 workflow_call :
14- pull_request :
15- types : [ assigned ]
14+
1615
1716jobs :
1817 set-envs :
Original file line number Diff line number Diff line change 1+ name : Build self hosted devices
2+
3+ on :
4+ workflow_call :
5+ inputs :
6+ DEVICE :
7+ required : true
8+ type : string
9+
10+ jobs :
11+ Build :
12+ runs-on : self-hosted
13+ env :
14+ CCACHE_DIR : $HOME/ccache-${{ inputs.DEVICE }}
15+ CCACHE_SLOPPINESS : pch_defines,time_macros
16+ SOURCES_DIR : /opt/rocknix-sources
17+ steps :
18+ - uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+ - name : Build
22+ uses : corrupt952/actions-retry-command@v1.0.7
23+ with :
24+ command : |
25+ CCACHE_DIR=$HOME/ccache-${{ inputs.DEVICE }} ccache --max-size=20G
26+ CCACHE_DIR=$HOME/ccache-${{ inputs.DEVICE }} ccache --set-config sloppiness=pch_defines,time_macros
27+ set -o pipefail
28+ make ${{ inputs.DEVICE }} | tee output.log | grep -E --color=never --line-buffered "^GET|^UNPACK|^BUILD|^INSTALL"
29+ exit ${PIPESTATUS[0]}
30+ max_attempts : 2
31+ retry_interval : 10
32+
33+ - name : Archive output.logs (${{ inputs.DEVICE }}-aarch64)
34+ if : failure()
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : output.logs-${{ inputs.DEVICE }}-aarch64
38+ path : |
39+ output.log
40+ ./build.ROCKNIX-${{ inputs.DEVICE }}.aarch64/.threads/logs/
41+ - name : Get date
42+ run : echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
43+
44+ - uses : actions/upload-artifact@v4
45+ with :
46+ name : ROCKNIX-image-${{ inputs.DEVICE }}-${{ env.DATE }}
47+ path : |
48+ target/ROCKNIX-*.img.gz
49+ target/ROCKNIX-*.img.gz.sha256
50+ compression-level : 0
51+ if-no-files-found : error
52+
53+ - uses : actions/upload-artifact@v4
54+ with :
55+ name : ROCKNIX-update-${{ inputs.DEVICE }}-${{ env.DATE }}
56+ path : |
57+ target/ROCKNIX-*.tar
58+ target/ROCKNIX-*.tar.sha256
59+ compression-level : 0
60+ if-no-files-found : error
Original file line number Diff line number Diff line change 1+ name : Build self-hosted
2+
3+ on :
4+ workflow_dispatch :
5+ workflow_call :
6+ pull_request :
7+ types : [ assigned ]
8+
9+ jobs :
10+ require-approval :
11+ runs-on : ubuntu-24.04
12+ environment :
13+ name : ${{ github.event_name == 'pull_request' && 'pr-approval' || 'auto' }}
14+ steps :
15+ - run : echo "PR approved"
16+ build-devices :
17+ name : Build Devices
18+ needs : require-approval
19+ strategy :
20+ fail-fast : false
21+ matrix :
22+ include :
23+ # - device: RK3326
24+ - device : RK3399
25+ # - device: RK3566
26+ # - device: RK3588
27+ # - device: S922X
28+ # - device: H700
29+ # - device: SDM845
30+ # - device: SM8250
31+ # - device: SM8550
32+ # - device: SM8650
33+ uses : ./.github/workflows/build-self-hosted-device.yml
34+ secrets : inherit
35+ with :
36+ DEVICE : ${{ matrix.device }}
You can’t perform that action at this time.
0 commit comments