Merge pull request #164 from ManoDaSilva/master #29
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: Debian Package for ARM | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: [linux, ARM] | |
container: | |
# image: ubuntu:latest | |
image: rust:1.63-bullseye | |
steps: | |
- name: Update packet sources | |
run: apt update -y | |
- name: Install dependencies | |
run: apt install -y devscripts build-essential lintian debhelper libudev-dev cargo dh-cargo rustc | |
- uses: actions/checkout@v2 | |
- name: Build debian package | |
run: | | |
dpkg-buildpackage -b -us -uc | |
mkdir package/ | |
mv ../unipager_*.deb package/ | |
- name: Push to cloudsmith.io | |
uses: cloudsmith-io/action@master | |
with: | |
api-key: ${{ secrets.CLOUDSMITH_API_KEY }} | |
command: 'push' | |
format: 'deb' | |
owner: 'rwth-afu' | |
repo: 'unipager' | |
distro: 'raspbian' | |
release: 'buster' | |
republish: 'true' | |
file: './package/*.deb' |