OpenRTX/.github/workflows/main.yml

45 wiersze
1.9 KiB
YAML
Czysty Zwykły widok Historia

2021-01-03 08:52:42 +00:00
name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
2021-11-10 22:58:06 +00:00
- name: Checkout repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: install-deps
2021-01-03 08:52:42 +00:00
run: |
sudo apt update
sudo apt install python3-pip gcc pkg-config libsdl2-dev wget ninja-build libcodec2-dev codec2
wget -O /tmp/MiosixToolchainInstaller.run https://miosix.org/toolchain/MiosixToolchainInstaller.run
sudo sh /tmp/MiosixToolchainInstaller.run
sudo pip3 install meson
wget -O /tmp/radio_tool.deb https://github.com/v0l/radio_tool/releases/download/v0.1.0/radio_tool-0.1.0-Linux.deb
sudo dpkg -i /tmp/radio_tool.deb
2021-04-24 14:57:30 +00:00
# sudo wget -O /usr/bin/bin2sgl https://raw.githubusercontent.com/rogerclarkmelbourne/OpenGD77/master/firmware/tools/bin2sgl
# sudo wget -O /usr/bin/bin2sgl.Linux https://raw.githubusercontent.com/rogerclarkmelbourne/OpenGD77/master/firmware/tools/bin2sgl.Linux
# sudo wget -O /usr/bin/gd-77_firmware_loader.py https://raw.githubusercontent.com/rogerclarkmelbourne/OpenGD77/master/tools/Python/FirmwareLoader/gd-77_firmware_loader.py
# sudo chmod +x /usr/bin/bin2sgl /usr/bin/bin2sgl.Linux /usr/bin/gd-77_firmware_loader.py
2021-01-03 08:52:42 +00:00
- name: meson-setup
run: |
cd ${{github.workspace}}
meson setup build_linux
meson setup --cross-file cross_arm.txt build_arm
- name: ninja
run: |
cd ${{github.workspace}}
ninja -C build_linux openrtx_linux -j4
ninja -C build_arm openrtx_md3x0_wrap -j4
ninja -C build_arm openrtx_mduv3x0_wrap -j4
2021-04-24 14:57:30 +00:00
ninja -C build_arm openrtx_gd77_bin -j4
ninja -C build_arm openrtx_dm1801_bin -j4
2021-01-03 08:52:42 +00:00
- uses: actions/upload-artifact@v2
with:
name: release-bins
path: |
2021-03-24 08:59:58 +00:00
${{github.workspace}}/build_arm/openrtx_*_wrap*
2021-01-03 08:52:42 +00:00
${{github.workspace}}/build_linux/openrtx_linux