Use github actions for building packets

This commit is contained in:
Vasily Evseenko 2023-03-27 01:04:48 +03:00
parent d3ee6c70e4
commit f218f3936c

28
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: WFB-ng package builder
on:
push:
branches: [ master ]
jobs:
build_and_test:
runs-on: ubuntu-22.04
strategy:
matrix:
docker-images:
- "2023-02-21-raspios-bullseye-armhf-lite"
- "2023-02-21-raspios-bullseye-arm64-lite"
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: build package
run: |
curl -s -L https://github.com/svpcom/wfb-ng/releases/download/wifibroadcast-17.10/qemu-7.2.0-fixed.tar.gz | sudo tar xzv -C /
make deb_docker DOCKER_SRC_IMAGE=p2ptech/cross-build:${{ matrix.docker-images }}
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: wfb-ng-${{ github.ref_name }}-${{ matrix.docker-images }}
path: |
deb_dist/*.deb