Skip to content

Commit

Permalink
improve build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
irvingywang committed Aug 22, 2024
1 parent baa5637 commit f28a84a
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,24 @@
name: Build Project
on:
push:
paths:
- "src/**"
- "lib/**"
pull_request:
paths:
- "src/**"
- "lib/**"

jobs:
build:
name: Build
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: "recursive" # Ensure submodules are checked out
submodules: "recursive" # Checkout submodules

- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
update: true
install: mingw-w64-x86_64-arm-none-eabi-gcc make
- name: Install ARM GCC Toolchain
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi make
- name: Build project
run: |
make -j24 V=1
shell: msys2 {0}
make -j$(nproc) V=1
shell: bash

0 comments on commit f28a84a

Please sign in to comment.