Update README: add info about adfls. #119
This file contains hidden or 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: deb packaging Ubuntu | |
| on: | |
| push: | |
| branches: [ "master", "devel", "citest", "citest-deb" ] | |
| tags: | |
| - '**' | |
| pull_request: | |
| branches: [ "master", "devel" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install prereq. | |
| run: | |
| sudo apt-get update && | |
| sudo apt-get install -y check devscripts debhelper build-essential | |
| - 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 ../*.ddeb ../*.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@v4 | |
| with: | |
| # name: adflib-${{ env.ADFLIB_TAG }}-deb-ubuntu | |
| name: adflib-deb-ubuntu | |
| path: | | |
| artifacts/ | |
| - name: archive tests/examples | |
| run: | | |
| mkdir -v artifact-tests | |
| tar cvzf artifact-tests/tests_examples.tgz tests/examples/ tests/data | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: adflib-tests-examples | |
| path: | | |
| artifact-tests | |
| test: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| # name: adflib-${{ env.ADFLIB_TAG }}-deb-ubuntu | |
| name: adflib-deb-ubuntu | |
| path: . | |
| - name: list packages extracted from the artifact | |
| run: ls -l | |
| - name: install packages | |
| run: sudo dpkg -i *.deb *.ddeb | |
| # run: sudo apt install *.deb *.ddeb | |
| - 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@v4 | |
| with: | |
| # name: adflib-${{ env.ADFLIB_TAG }}-deb-ubuntu | |
| name: adflib-tests-examples | |
| path: . | |
| - name: extract tests/examples | |
| run: tar xvzf tests_examples.tgz | |
| - name: test installed command-line utils | |
| run: | | |
| ./tests/examples/test_examples_basic.sh /usr/bin | |
| ./tests/examples/test_all_examples.sh /usr/bin |