Skip to content

Commit

Permalink
Github actions update
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Nov 29, 2023
1 parent fbb4d08 commit d4b4b9b
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,34 @@ on:
jobs:
build:
runs-on: ubuntu-22.04

container:
image: archlinux:latest
steps:
- name: arm-none-eabi-gcc
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '10.3-2021.10'

- name: Install Python dependencies
run: python -m pip install --upgrade pip crcmod

- name: Checkout
uses: actions/checkout@v3

- name: Submodules
run: git submodule update --init --recursive --depth 1

- name: Make
run: make

- name: size
run: arm-none-eabi-size firmware

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware*.bin
- name: base-devel
run: pacman -Syyu base-devel --noconfirm
- name: arm-none-eabi-gcc
run: pacman -Syyu arm-none-eabi-gcc --noconfirm
- name: arm-none-eabi-newlib
run: pacman -Syyu arm-none-eabi-newlib --noconfirm
- name: git
run: pacman -Syyu git --noconfirm
- name: python-pip
run: pacman -Syyu python-pip --noconfirm
- name: python-crcmod
run: pacman -Syyu python-crcmod --noconfirm

- name: Checkout
uses: actions/checkout@v3

- name: safe.directory
run: git config --global --add safe.directory /__w/uv-k5-firmware-custom/uv-k5-firmware-custom
- name: Make
run: make
- name: size
run: arm-none-eabi-size firmware

- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: firmware
path: firmware*.bin

0 comments on commit d4b4b9b

Please sign in to comment.