Skip to content

Commit

Permalink
编译
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu committed Nov 21, 2024
1 parent 3455879 commit 940d465
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
on: #指定触发 workflow 的事件
push: #当代码推送时触发

jobs: #定义工作流程
build: #工作流名称为 build
runs-on: ubuntu-22.04 #使用 Ubuntu 22.04 环境执行
container: #定义容器
image: archlinux:latest #使用 Arch Linux 镜像
steps: #定义工作流程中的步骤
on: #ָ������ workflow ���¼�
push: #����������ʱ����

jobs: #���幤������
build: #����������Ϊ build
runs-on: ubuntu-22.04 #ʹ�� Ubuntu 22.04 ����ִ��
container: #��������
image: archlinux:latest #ʹ�� Arch Linux ����
steps: #���幤�������еIJ���
- name: Install dependencies
run: |
pacman -Syyu --noconfirm \
Expand All @@ -17,22 +17,22 @@ jobs: #
python-pip \
python-crcmod \
- name: Checkout #拉取代码
uses: actions/checkout@v4 #使用 GitHub Actions 提供的 checkout 动作
- name: Checkout #��ȡ����
uses: actions/checkout@v4 #ʹ�� GitHub Actions �ṩ�� checkout ����

- name: safe.directory #设置 git safe.directory 配置
- name: safe.directory #���� git �� safe.directory ����
run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom

- name: Make #执行 make 命令
run: make full #编译项目
- name: Make #ִ�� make ����
run: make test #������Ŀ

- name: size #计算 firmware 大小
run: arm-none-eabi-size firmware #使用 arm-none-eabi-size 命令计算固件大小
- name: size #���� firmware ��С
run: arm-none-eabi-size firmware #ʹ�� arm-none-eabi-size �������̼���С

- name: Upload Artifact #上传固件文件
uses: actions/upload-artifact@v4 #使用 GitHub Actions 提供的 upload-artifact 动作
- name: Upload Artifact #�ϴ��̼��ļ�
uses: actions/upload-artifact@v4 #ʹ�� GitHub Actions �ṩ�� upload-artifact ����
with:
name: firmware #设置 artifact 名称为 firmware
path: LOSEHU*.bin #上传文件路径为 LOSEHU*.bin
name: firmware #���� artifact ����Ϊ firmware
path: LOSEHU*.bin #�ϴ��ļ�·��Ϊ LOSEHU*.bin


0 comments on commit 940d465

Please sign in to comment.