mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-09-19 05:53:59 +08:00
34 lines
629 B
YAML
34 lines
629 B
YAML
name: Build and Upload Images
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.11
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y xz-utils gzip
|
|
|
|
- name: Build system image
|
|
run: |
|
|
./build_system.sh
|
|
|
|
- name: Package OTA
|
|
run: |
|
|
python3 internal/package_ota.py
|
|
|
|
- name: Upload images
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: SPARSE_IMAGE
|
|
path: output/ota/*.img.xz
|