Replace Fedora 38 with 40 in packaging workflow #7
Workflow file for this run
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: Packaging for Debian and Ubuntu | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ${{ matrix.target }} | |
strategy: | |
fail-fast: false | |
matrix: | |
arch: | |
- amd64 | |
target: | |
- "debian:buster" | |
- "debian:bookworm" | |
- "debian:bullseye" | |
- "ubuntu:jammy" | |
- "ubuntu:noble" | |
- "ubuntu:focal" | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install prereq packages | |
run: ./debpkg-setup.sh | |
- name: Build packages | |
run: ./debpkg-build.sh | |
- name: Store packages | |
run: | | |
export DIRNAME=`echo ${{ matrix.target }} | tr ':' '_'` | |
mkdir -p packages/${DIRNAME} | |
cp ../*.deb packages/${DIRNAME}/ | |
- name: Run tests | |
run: | | |
export DIRNAME=`echo ${{ matrix.target }} | tr ':' '_'` | |
./run-tests.sh ${DIRNAME} | |
- name: Publish packages to cloudsmith | |
uses: wandnz/[email protected] | |
with: | |
path: packages/ | |
repo: ${{ secrets.CLOUDSMITH_OWNER }}/libwandio | |
username: salcock | |
api_key: ${{ secrets.CLOUDSMITH_API_KEY }} |