mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-01-15 14:54:40 +00:00
26 lines
593 B
YAML
26 lines
593 B
YAML
name: Docker Build
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Build Docker image
|
|
run: docker build -t myapp .
|
|
|
|
- name: Run compilation inside Docker container
|
|
run: docker run myapp sh ../../../compile-with-docker.sh
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: compiled-firmware
|
|
path: compiled-files # Replace with the path to your compiled files
|