Skip to content

Update armmem on embedded targets to elfmem #19

Update armmem on embedded targets to elfmem

Update armmem on embedded targets to elfmem #19

Workflow file for this run

name: PMC firmware build tests
on:
pull_request:
paths:
- "software/pmc/**"
branches: [ "v2" ]
push:
paths:
- "software/pmc/**"
branches: [ "v2" ]
workflow_dispatch:
env:
ARM_LIBROOT: "/opt/arm-cmsis"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update install
run:
sudo apt-get update
timeout-minutes: 5
- name: Install toolchain
uses: carlosperate/arm-none-eabi-gcc-action@v1
- name: Install build dependencies
run: |
# Install elfmem
wget https://github.com/vankxr/elfmem/releases/download/2.0-0/elfmem_2.0-0_amd64.deb
sudo dpkg -i elfmem_2.0-0_amd64.deb
# Install Core pack
git clone https://github.com/vankxr/Core-CMSIS
cd Core-CMSIS/build
chmod +x build.sh
./build.sh
sudo mkdir -p $ARM_LIBROOT
sudo mv ARM.CMSIS.5.9.0 $ARM_LIBROOT/ARM.CMSIS
# Install SAMD20 pack
sudo mkdir -p $ARM_LIBROOT/Microchip.SAMD20_DFP
wget -O Microchip.SAMD20_DFP.3.6.112.zip https://packs.download.microchip.com/Microchip.SAMD20_DFP.3.6.112.pack
unzip Microchip.SAMD20_DFP.3.6.112.zip -d $ARM_LIBROOT/Microchip.SAMD20_DFP
timeout-minutes: 5
- uses: actions/checkout@v4
with:
fetch-depth: 1
clean: true
- name: Build PMC firmware
run: |
cd ${{github.workspace}}/software/pmc
make BUILD_TYPE=release
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: pmc_firmware
path: ${{github.workspace}}/software/pmc/bin/v*
retention-days: 30