Fix Fw Write for SGL radios #104
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: UbuntuRelease | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: apt-install | |
run: | | |
sudo apt update | |
sudo apt install libusb-1.0-0-dev cmake gcc-9 | |
- name: run-cmake | |
run: | | |
cd ${{github.workspace}} | |
mkdir build && cd build | |
cmake -DBUILD_TESTING=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-9 -DCMAKE_CXX_COMPILER=/usr/bin/g++-9 .. | |
- name: make | |
run: | | |
cd ${{github.workspace}}/build | |
make -j4 | |
- name: test | |
run: | | |
cd ${{github.workspace}}/build | |
ctest -C Release --timeout 600 --output-on-failure | |
- name: pack | |
run: | | |
cd ${{github.workspace}}/build | |
cpack -C Release | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: release-deb | |
path: | | |
${{github.workspace}}/build/*.deb | |
${{github.workspace}}/build/*.deb.sha256 | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: release-tar | |
path: | | |
${{github.workspace}}/build/*.tar.xz.sha256 | |
${{github.workspace}}/build/*.tar.xz |