-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github tests for deb package building
As i spotted repository have only gitlab-ci tests, it will be handy for contributors to have also github tests. Signed-off-by: Denys Fedoryshchenko <[email protected]>
- Loading branch information
1 parent
67b0736
commit 672595c
Showing
1 changed file
with
57 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Run tests | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- add-github-tests | ||
pull_request_target: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
Native-Deb-packaging: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, ubuntu-22.04] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: 'true' | ||
fetch-depth: 0 | ||
path: "ripe-atlas-software-probe" | ||
- name: Set up necessary dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y git tar fakeroot libssl-dev libcap2-bin autoconf automake libtool build-essential | ||
- name: Build the software probe deb package | ||
run: | | ||
./ripe-atlas-software-probe/build-config/debian/bin/make-deb | ||
Docker-Deb-packaging: | ||
strategy: | ||
matrix: | ||
docker-image: ["debian:bullseye", "debian:buster", "debian:bookworm", "ubuntu:23.10", "ubuntu:24.04"] | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: ${{ matrix.docker-image }} | ||
steps: | ||
- name: Install necessary dependencies | ||
run: | | ||
apt-get update | ||
apt-get install -y git tar fakeroot libssl-dev libcap2-bin autoconf automake libtool build-essential | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
path: "ripe-atlas-software-probe" | ||
- name: Checkout submodules | ||
run: | | ||
cd ripe-atlas-software-probe | ||
git submodule update --init --recursive | ||
- name: Build the software probe deb package | ||
run: | | ||
./ripe-atlas-software-probe/build-config/debian/bin/make-deb |