Skip to content

Commit

Permalink
github actions build for raspbian
Browse files Browse the repository at this point in the history
  • Loading branch information
igagis committed Dec 28, 2020
1 parent f12099e commit 5e75af2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ env:
jobs:
##### linux #####
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- {os: debian, codename: buster, image_owner: , package_type: deb}
# - {os: debian, codename: buster, image_owner: i386/, package_type: deb}
- {os: debian, codename: buster, image_owner: i386/, package_type: deb, labels: [qemu,docker]}
- {os: ubuntu, codename: bionic, image_owner: , package_type: deb}
- {os: ubuntu, codename: focal, image_owner: , package_type: deb}
# - {os: raspbian, codename: buster, image_owner: igagis/, package_type: deb}
- {os: raspbian, codename: buster, image_owner: igagis/, package_type: deb, labels: [arm,docker]}
runs-on: ${{ (matrix.labels == '' && 'ubuntu-latest') || matrix.labels }}
container: ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
name: linux - ${{ matrix.os }}:${{ matrix.codename }}
name: linux - ${{ matrix.image_owner }}${{ matrix.os }}:${{ matrix.codename }}
steps:
- name: git clone
uses: actions/checkout@main
uses: actions/checkout@v1
- name: add cppfw deb repo
uses: myci-actions/add-deb-repo@master
with:
Expand All @@ -32,18 +32,21 @@ jobs:
keys: 379CE192D401AB61
- name: install ci tools
run: |
# configure timezone to avoid 'tzdata' package to require user interaction during installation
# configure timezone to avoid 'tzdata' package to require user interaction during installation (needed for ubuntu:focal)
TZ=Europe/Helsinki ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
apt install --assume-yes devscripts equivs myci
- name: set PACKAGE_VERSION
uses: myci-actions/export-env-var@master
with: {name: PACKAGE_VERSION, value: $(myci-deb-version.sh debian/changelog)}
- name: prepare debian package
run: myci-deb-prepare.sh --soname $(cat soname.txt)
- name: install deps
run: myci-deb-install-build-deps.sh
- name: build
run: autojobs=true dpkg-buildpackage --unsigned-source --unsigned-changes
- name: deploy deb packages
run: myci-deploy-debian-bintray.sh --owner cppfw --repo ${{ matrix.os }} --distro ${{ matrix.codename }} --component main --package $PACKAGE_NAME ../*.deb
run: myci-deploy-debian-bintray.sh --owner cppfw --repo ${{ matrix.os }} --distro ${{ matrix.codename }} --component main --package $PACKAGE_NAME ../lib${PACKAGE_NAME}*_${PACKAGE_VERSION}_*.deb
if: matrix.package_type == 'deb' && startsWith(github.ref, 'refs/tags/')
##### macosx #####
macosx:
Expand Down

0 comments on commit 5e75af2

Please sign in to comment.