Optimize build workflow (#2) #41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Snake Game Project | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - build | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Pull project | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: 'recursive' | |
| - name: Build project | |
| run: | | |
| sudo apt-get install gcc-arm-none-eabi | |
| cd Release/ | |
| make all | |
| cd ../Debug/ | |
| make all | |
| - name: Download Release firmware | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: SnakeRelease | |
| path: Release/Snake.* | |
| - name: Download Debug firmware | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: SnakeDebug | |
| path: Debug/Snake.* |