mirror of
https://github.com/silenty4ng/uv-k5-firmware-chinese-lts
synced 2025-04-29 17:07:22 +00:00
Update docker-image.yml
This commit is contained in:
parent
572f51471e
commit
80ab1f9a81
1 changed files with 42 additions and 19 deletions
61
.github/workflows/docker-image.yml
vendored
61
.github/workflows/docker-image.yml
vendored
|
@ -1,26 +1,49 @@
|
||||||
name: Docker Build
|
on:
|
||||||
|
push:
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
|
container:
|
||||||
|
image: archlinux:latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: base-devel
|
||||||
uses: actions/checkout@v2
|
run: pacman -Syyu base-devel --noconfirm
|
||||||
|
- name: arm-none-eabi-gcc
|
||||||
|
run: pacman -Syyu arm-none-eabi-gcc --noconfirm
|
||||||
|
- name: arm-none-eabi-newlib
|
||||||
|
run: pacman -Syyu arm-none-eabi-newlib --noconfirm
|
||||||
|
- name: git
|
||||||
|
run: pacman -Syyu git --noconfirm
|
||||||
|
- name: python-pip
|
||||||
|
run: pacman -Syyu python-pip --noconfirm
|
||||||
|
- name: python-crcmod
|
||||||
|
run: pacman -Syyu python-crcmod --noconfirm
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Checkout
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: safe.directory
|
||||||
|
run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom
|
||||||
|
- name: Make
|
||||||
|
run: make
|
||||||
|
- name: size
|
||||||
|
run: arm-none-eabi-size firmware
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: 'Upload Artifact'
|
||||||
run: docker build -t myapp .
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: firmware
|
||||||
|
path: firmware*.bin
|
||||||
|
|
||||||
- name: Run compilation inside Docker container
|
- name: Upload binaries to release
|
||||||
run: docker run myapp sh ../../../compile-with-docker.sh
|
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
uses: svenstaro/upload-release-action@v2
|
||||||
- name: Upload artifacts
|
with:
|
||||||
uses: actions/upload-artifact@v2
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
file: firmware.packed.bin
|
||||||
name: compiled-firmware
|
asset_name: egzumer_$tag.packed.bin
|
||||||
path: compiled-files # Replace with the path to your compiled files
|
tag: ${{ github.ref }}
|
||||||
|
overwrite: true
|
||||||
|
release_name: release ${{ github.ref_name }}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue