Skip to content

Fixed typos in the headers and one incorrect function signature #36

Fixed typos in the headers and one incorrect function signature

Fixed typos in the headers and one incorrect function signature #36

Workflow file for this run

name: deb packaging Debian
on:
push:
branches: [ "master", "devel", "citest", "citest-deb" ]
tags:
- '**'
pull_request:
branches: [ "master", "devel" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
image: [11, stable]
container:
image: debian:${{ matrix.image }}
steps:
- uses: actions/checkout@v3
- name: install prereq.
run:
apt-get update &&
apt-get install -y check devscripts debhelper pkg-config
- name: debuild
run: util/deb_build.sh
- name: list packages
run: ls ..
# https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts
- name: copy artifacts
run: |
mkdir -v artifacts
mv -v ../*.deb ../*.gz ../*.xz artifacts/
# https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
#- name: set env
# run: echo "ADFLIB_TAG=${GITHUB_REF#refs/*/}" | tr / _ >> $GITHUB_ENV
#- name: Test
# run: |
# echo $ADFLIB_TAG
# echo ${{ env.ADFLIB_TAG }}
- uses: actions/upload-artifact@v3
with:
# name: adflib-${{ env.ADFLIB_TAG }}-deb-debian
name: adflib-debian-${{ matrix.image }}
path: |
artifacts/
- name: archive examples/tests
run: |
mkdir -v artifact-tests
tar cvzf artifact-tests/examples_tests.tgz examples/tests/
- uses: actions/upload-artifact@v3
with:
name: adflib-examples-tests-${{ matrix.image }}
path: |
artifact-tests
test:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
image: [11, stable]
container:
image: debian:${{ matrix.image }}
steps:
- uses: actions/download-artifact@v3
with:
# name: adflib-${{ env.ADFLIB_TAG }}-deb-debian
name: adflib-debian-${{ matrix.image }}
path: .
- name: list packages extracted from the artifact
run: ls -l
- name: install packages
run:
apt-get update &&
for DEB in `ls *.deb` ;
do
echo ${PWD}/$DEB ;
done |
xargs apt-get install -y
- name: check installation
run:
dpkg -l 'libadf*' ;
dpkg -l 'libadf*' | grep "libadf" |
cut -d' ' -f 3 | cut -d':' -f 1 | xargs dpkg -L
- uses: actions/download-artifact@v3
with:
# name: adflib-${{ env.ADFLIB_TAG }}-deb-debian
name: adflib-examples-tests-${{ matrix.image }}
path: .
- name: extract examples/tests
run: tar xvzf examples_tests.tgz
- name: test installed command-line utils
run: |
./examples/tests/test_examples_basic.sh /usr/bin
./examples/tests/test-all-examples.sh /usr/bin