mirror of
https://github.com/jam422470459/EPD-nRF52-hema213.git
synced 2025-12-06 08:32:54 +08:00
70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
nrf51:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Install ARM GCC
|
|
uses: carlosperate/arm-none-eabi-gcc-action@v1
|
|
id: arm-none-eabi-gcc-action
|
|
with:
|
|
release: '4.9-2015-q3'
|
|
- name: Build
|
|
run: |
|
|
gcc_path=${{ steps.arm-none-eabi-gcc-action.outputs.path }}
|
|
sudo ln -s `dirname ${gcc_path}` /usr/local/gcc-arm-none-eabi-4_9-2015q3
|
|
cp Makefile.nRF51 Makefile
|
|
make
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: nrf51822_xxaa
|
|
path: |
|
|
_build/nrf51822_xxaa.hex
|
|
SDK/12.3.0_d7731ad/components/softdevice/s130/hex/s130_nrf51_2.0.1_softdevice.hex
|
|
nrf52:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Install ARM GCC
|
|
uses: carlosperate/arm-none-eabi-gcc-action@v1
|
|
id: arm-none-eabi-gcc-action
|
|
with:
|
|
release: '9-2020-q2'
|
|
- name: Build
|
|
run: |
|
|
gcc_path=${{ steps.arm-none-eabi-gcc-action.outputs.path }}
|
|
sudo ln -s `dirname ${gcc_path}` /usr/local/gcc-arm-none-eabi-9-2020-q2-update
|
|
cp Makefile.nRF52 Makefile
|
|
make
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: nrf52811_xxaa
|
|
path: |
|
|
_build/nrf52811_xxaa.hex
|
|
SDK/17.1.0_ddde560/components/softdevice/s112/hex/s112_nrf52_7.2.0_softdevice.hex
|
|
|
|
win32:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Install MSYS2
|
|
uses: msys2/setup-msys2@v2
|
|
with:
|
|
update: true
|
|
install: >-
|
|
make
|
|
mingw-w64-x86_64-gcc
|
|
- name: Build
|
|
run: make -f Makefile.win32
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: emulator
|
|
path: emulator.exe |