Update pre-commit hooks #93
This file contains 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: Package | |
on: push | |
concurrency: | |
group: ${{ github.ref }}-${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
package: | |
name: Package | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
lfs: true | |
- name: Install dependencies | |
run: | | |
sudo apt install ninja-build cmake wget | |
- name: Install GCC | |
run: | | |
wget https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz | |
tar -xvf arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz | |
export PATH="$PATH:$GITHUB_WORKSPACE/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/bin" | |
arm-none-eabi-g++ --version | |
- name: Build firmware | |
run: | | |
export PATH="$PATH:$GITHUB_WORKSPACE/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi/bin" | |
cmake --preset arm-gnu | |
cmake --build --preset release | |
- name: Make firmware archive | |
run: | | |
mkdir firmware | |
cp build/src/kyma/Release/kyma.bin firmware | |
cp build/src/hades/Release/hades.bin firmware | |
cp build/src/astra/Release/astra.bin firmware | |
- name: Upload coverage artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: firmware | |
path: firmware | |
if-no-files-found: error | |
release: | |
name: Release | |
needs: package | |
if: contains(github.ref, 'tags/v') | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
lfs: true | |
- name: Get Artifacts | |
uses: actions/download-artifact@v3 | |
- name: Show artifacts | |
run: ls -la | |
- name: Create Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: false | |
fail_on_unmatched_files: true | |
files: | | |
./LICENSE.txt | |
./firmware/** |