Unverified Commit d25595e6 authored by Kip's avatar Kip Committed by GitHub

Merge pull request #946 from Tachi107/actions-autopkgtest-amd64

Add autopkgtest GitHub Action
parents a782ae44 d2fba6e5
# SPDX-FileCopyrightText: 2021 Andrea Pappacoda <andrea@pappacoda.it>
#
# SPDX-License-Identifier: Apache-2.0
name: autopkgtest
on:
[push, pull_request]
defaults:
run:
shell: sh
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt -qq update
sudo apt -qq install autopkgtest genisoimage qemu-system vmdb2 meson cppcheck debhelper-compat dh-exec libc6-dev libcurl4-openssl-dev libgtest-dev libssl-dev libstdc++6 lintian pkg-config rapidjson-dev valgrind devscripts --no-install-recommends
- name: Build image
run: |
sudo autopkgtest-build-qemu --size 12G testing $HOME/autopkgtest-testing.img
- name: Build Debian package
run: |
./debian/rules get-orig-source
debuild -S -sa -uc -us
- name: Run autopkgtest
run: autopkgtest ../pistache_*.dsc -- qemu --timeout-reboot=120 $HOME/autopkgtest-testing.img
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment