feat(kernel): updated support for real hardware #2088
This file contains hidden or 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
| name: Build And Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - next | |
| tags: | |
| - "*" | |
| pull_request: | |
| env: | |
| SOURCE_DATE_EPOCH: 1700000000 | |
| RELEASE: 1 | |
| CACHE_PATH: ${{secrets.CACHE_PATH}} | |
| jobs: | |
| build: | |
| if: github.event_name != 'pull_request' | |
| runs-on: self-hosted | |
| strategy: | |
| matrix: | |
| device: [qemu] | |
| arch: [amd64] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Update Compile Database | |
| run: make GOARCH=${{matrix.arch}} compile_db | |
| - name: update-kernel | |
| run: make GOARCH=${{matrix.arch}} update-kernel -j$(nproc) | |
| - name: Build | |
| run: PATH=$PATH:/usr/sbin make GOARCH=${{matrix.arch}} -j$(nproc) | |
| - name: Compress Image | |
| run: | | |
| rm -rf ${CACHE_PATH}/${{matrix.device}}/${{matrix.arch}}/bundle | |
| mkdir -p ${CACHE_PATH}/${{matrix.device}}/${{matrix.arch}}/bundle | |
| cp -a ${CACHE_PATH}/${{matrix.device}}/${{matrix.arch}}/disk.img external/${{matrix.arch}}/firmware external/${{matrix.arch}}/variables ${CACHE_PATH}/${{matrix.device}}/${{matrix.arch}}/bundle/ | |
| cd ${CACHE_PATH}/${{matrix.device}}/${{matrix.arch}}/bundle | |
| zip ../rlxos-${{github.ref_name}}-${{matrix.device}}-${{matrix.arch}}.zip disk.img firmware variables | |
| - name: Create / Update Release and Upload Artifact | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: ${{ github.ref_name }} | |
| tag_name: ${{ github.ref_name }} | |
| prerelease: ${{ github.ref_type != 'tag' }} | |
| allowUpdates: true | |
| files: | | |
| ${CACHE_PATH}/${{matrix.device}}/${{matrix.arch}}/rlxos-${{github.ref_name}}-${{matrix.device}}-${{matrix.arch}}.zip | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |