name: build on: push: branches: [ master ] pull_request: workflow_dispatch: concurrency: group: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.run_id || github.head_ref || github.ref }}-${{ github.workflow }}-${{ github.event_name }} cancel-in-progress: true jobs: build: name: build kernel and system runs-on: namespace-profile-arm64-8x16-2004-caching timeout-minutes: 60 steps: - uses: actions/checkout@v4 with: lfs: true submodules: true - name: Get commit message run: | { echo 'LAST_COMMIT_MESSAGE< VERSION - name: Build system env: GIT_HASH: ${{ github.event.pull_request.head.sha }} run: ./build_system.sh - name: Statistics id: stats run: | { echo 'stats_summary< output/ota/PR cp VERSION output/ota echo "${{ steps.stats.outputs.stats_summary }}" > output/ota/agnos_stats.txt - name: Upload artifacts if: "contains(env.LAST_COMMIT_MESSAGE, '[upload]')" uses: actions/upload-artifact@v4 with: name: agnos-artifacts path: output/ota compression-level: 0