Skip to content

Commit

Permalink
修复Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWhiteDog9487 committed Oct 12, 2024
1 parent 98c10f1 commit 2c958e2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: 更新二进制可执行文件

on:
workflow_dispatch:
push:
paths:
- language.cpp
Expand All @@ -12,12 +13,12 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: 安装GCC对ARM交叉编译工具链
run: apt install gcc-arm-none-eabi
run: sudo apt install g++-aarch64-linux-gnu

- name: 编译源代码
run: |
arm-none-eabi-g++ -o language_arm --static -std=c++26 languagecpp
g++ -o language --static -std=c++26 language.cpp
g++ -o language --static -std=c++20 language.cpp
aarch64-linux-gnu-g++ -o language_arm --static -std=c++20 language.cpp
- uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 2c958e2

Please sign in to comment.