Merge pull request #29 from ittuann/main

Optimized Github Action
This commit is contained in:
losehu 2023-12-08 20:57:32 +08:00 committed by GitHub
commit ef494234e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,30 +7,29 @@ jobs:
container: container:
image: archlinux:latest image: archlinux:latest
steps: steps:
- name: base-devel - name: Install dependencies
run: pacman -Syyu base-devel --noconfirm run: |
- name: arm-none-eabi-gcc pacman -Syyu --noconfirm \
run: pacman -Syyu arm-none-eabi-gcc --noconfirm base-devel \
- name: arm-none-eabi-newlib arm-none-eabi-gcc \
run: pacman -Syyu arm-none-eabi-newlib --noconfirm arm-none-eabi-newlib \
- name: git git \
run: pacman -Syyu git --noconfirm python-pip \
- name: python-pip python-crcmod
run: pacman -Syyu python-pip --noconfirm
- name: python-crcmod
run: pacman -Syyu python-crcmod --noconfirm
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: safe.directory - name: safe.directory
run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom
- name: Make - name: Make
run: make run: make
- name: size - name: size
run: arm-none-eabi-size firmware run: arm-none-eabi-size firmware
- name: 'Upload Artifact' - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: firmware name: firmware
@ -46,4 +45,3 @@ jobs:
tag: ${{ github.ref }} tag: ${{ github.ref }}
overwrite: true overwrite: true
release_name: release ${{ github.ref_name }} release_name: release ${{ github.ref_name }}