README.md: upgrade version in example; add a cpack jammy example #180
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
--- | |
name: CI | |
on: [ workflow_dispatch, push, pull_request ] | |
jobs: | |
omnilint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: docker://lpenz/omnilint:0.5.1 | |
pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
- name: Install pytest | |
run: python -m pip install pytest | |
- run: pytest | |
test: | |
strategy: | |
matrix: | |
preset: | |
- cppcheck | |
- install | |
- clang-tidy | |
- clang-sanitize-address | |
- clang-sanitize-memory | |
- clang-sanitize-undefined | |
- clang-sanitize-dataflow | |
- clang-sanitize-safe-stack | |
- gcc-sanitize-address | |
- valgrind | |
- cpack | |
- coverage | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
path: ghaction-cmake | |
- uses: actions/[email protected] | |
with: | |
repository: lpenz/execpermfix | |
path: execpermfix | |
fetch-depth: 0 | |
- uses: ./ghaction-cmake | |
with: | |
preset: ${{ matrix.preset }} | |
working-directory: execpermfix | |
publish-dockerhub: | |
needs: [ omnilint, test ] | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
variant: | |
# Global default: Debian Bullseye | |
- base: debian:bullseye | |
platform: 'linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64' | |
label: '' | |
# Global default platforms: Debian Bullseye | |
- base: debian:bullseye | |
platform: linux/386 | |
label: -386 | |
- base: debian:bullseye | |
platform: linux/amd64 | |
label: -amd64 | |
- base: debian:bullseye | |
platform: linux/arm/v6 | |
label: -armv6 | |
- base: debian:bullseye | |
platform: linux/arm/v7 | |
label: -armv7 | |
- base: debian:bullseye | |
platform: linux/arm64 | |
label: -arm64 | |
# Debian Bullseye platforms: | |
- base: debian:bullseye | |
platform: linux/386 | |
label: -debian-bullseye-386 | |
- base: debian:bullseye | |
platform: linux/amd64 | |
label: -debian-bullseye-amd64 | |
- base: debian:bullseye | |
platform: linux/arm/v6 | |
label: -debian-bullseye-armv6 | |
- base: debian:bullseye | |
platform: linux/arm/v7 | |
label: -debian-bullseye-armv7 | |
- base: debian:bullseye | |
platform: linux/arm64 | |
label: -debian-bullseye-arm64 | |
# Debian Bookworm platforms: | |
- base: debian:bookworm | |
platform: linux/386 | |
label: -debian-bookworm-386 | |
- base: debian:bookworm | |
platform: linux/amd64 | |
label: -debian-bookworm-amd64 | |
- base: debian:bookworm | |
platform: linux/arm/v6 | |
label: -debian-bookworm-armv6 | |
- base: debian:bookworm | |
platform: linux/arm/v7 | |
label: -debian-bookworm-armv7 | |
- base: debian:bookworm | |
platform: linux/arm64 | |
label: -debian-bookworm-arm64 | |
# Debian Trixie platforms: | |
- base: debian:trixie | |
platform: linux/386 | |
label: -debian-trixie-386 | |
- base: debian:trixie | |
platform: linux/amd64 | |
label: -debian-trixie-amd64 | |
- base: debian:trixie | |
platform: linux/arm/v6 | |
label: -debian-trixie-armv6 | |
- base: debian:trixie | |
platform: linux/arm/v7 | |
label: -debian-trixie-armv7 | |
- base: debian:trixie | |
platform: linux/arm64 | |
label: -debian-trixie-arm64 | |
# Ubuntu Jammy platforms: | |
- base: ubuntu:jammy | |
platform: linux/amd64 | |
label: -ubuntu-jammy-amd64 | |
- base: ubuntu:jammy | |
platform: linux/arm/v7 | |
label: -ubuntu-jammy-armv7 | |
- base: ubuntu:jammy | |
platform: linux/arm64/v8 | |
label: -ubuntu-jammy-arm64 | |
# Ubuntu Kinetic platforms: | |
- base: ubuntu:kinetic | |
platform: linux/amd64 | |
label: -ubuntu-kinetic-amd64 | |
- base: ubuntu:kinetic | |
platform: linux/arm/v7 | |
label: -ubuntu-kinetic-armv7 | |
- base: ubuntu:kinetic | |
platform: linux/arm64/v8 | |
label: -ubuntu-kinetic-arm64 | |
# Raspbian Bullseye: | |
- base: lpenz/raspbian-bullseye-armhf | |
platform: linux/armhf | |
label: -raspbian-bullseye-armhf | |
# Raspberry Pi OS Bullseye: | |
- base: lpenz/rpios-bullseye-armhf | |
platform: linux/armhf | |
label: -rpios-bullseye-armhf | |
- base: lpenz/rpios-bullseye-arm64 | |
platform: linux/arm64 | |
label: -rpios-bullseye-arm64 | |
steps: | |
- uses: actions/[email protected] | |
- id: version | |
uses: docker://lpenz/ghaction-version-gen:0.13.2 | |
- uses: docker/[email protected] | |
- uses: docker/[email protected] | |
- uses: docker/[email protected] | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
if: ${{ steps.version.outputs.version_docker_ci != 'null' }} | |
- uses: docker/[email protected] | |
with: | |
build-args: BASE=${{ matrix.variant.base }} | |
push: ${{ steps.version.outputs.version_docker_ci != 'null' }} | |
platforms: ${{ matrix.variant.platform }} | |
tags: ${{ github.repository }}:${{ steps.version.outputs.version_docker_ci }}${{ matrix.variant.label }} | |
publish-github-release: | |
needs: [ publish-dockerhub ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- id: version | |
uses: docker://lpenz/ghaction-version-gen:0.13.2 | |
- name: publish github release | |
uses: "marvinpinto/[email protected]" | |
if: steps.version.outputs.version_tagged != '' | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: false |