Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Workflows pin every action to a commit. Dependabot keeps those pins current,
# and updates the version comment beside each one.
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
groups:
actions:
patterns: ["*"]
10 changes: 5 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Install FFmpeg/OpenSSL dev libraries
run: |
Expand All @@ -49,15 +49,15 @@ jobs:
libavutil-dev libavformat-dev libavfilter-dev \
libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable

# Build caches hold objects compiled against this runner's FFmpeg. When
# GitHub moves ubuntu-latest to a new release, an old cache links against
# the new libraries and fails on removed functions, so key on the version.
- name: Key the build cache to this FFmpeg
run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV"

- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
key: ${{ env.FFMPEG_KEY }}

Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
print("No broken internal links.")
PY

- uses: actions/upload-pages-artifact@v3
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: target/book

Expand All @@ -133,4 +133,4 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
20 changes: 11 additions & 9 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ name: Packaging
# the nightly run is for: upstream master moves daily, and a schema or
# stream-socket change there should show up here the next morning, not on a
# user's machine.
#
# Not on push to master: the pull request already tested the same code, and
# running again on every merge doubled a slow job. The nightly run covers
# master, and ZoneMinder master moving under it.
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
paths:
Expand Down Expand Up @@ -46,7 +48,7 @@ jobs:
name: Shell scripts
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
# The scripts that ship in the package, and the test drivers.
- run: |
shellcheck -x -S warning \
Expand Down Expand Up @@ -81,13 +83,13 @@ jobs:
- { distro: opensuse-tumbleweed, arch: amd64, runner: ubuntu-24.04, flow: package }
- { distro: arch, arch: amd64, runner: ubuntu-24.04, flow: package }
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

# The cargo registry and the target directory of the in-container build.
# Saved from the default branch only, so pull requests read a warm cache
# without each one writing its own multi-gigabyte copy.
# Saved by the nightly run on the default branch only, so pull requests
# read a warm cache without each one writing its own multi-gigabyte copy.
- name: Restore build cache
uses: actions/cache/restore@v5
uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ${{ runner.temp }}/e2e-cache
key: packaging-${{ matrix.distro }}-${{ matrix.arch }}-${{ hashFiles('Cargo.lock') }}
Expand Down Expand Up @@ -118,15 +120,15 @@ jobs:

- name: Upload logs
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: packaging-logs-${{ matrix.distro }}-${{ matrix.arch }}
path: target/e2e/${{ matrix.distro }}/logs
if-no-files-found: ignore

- name: Save build cache
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
uses: actions/cache/save@v5
uses: actions/cache/save@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: ${{ runner.temp }}/e2e-cache
key: packaging-${{ matrix.distro }}-${{ matrix.arch }}-${{ hashFiles('Cargo.lock') }}
38 changes: 19 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
name: Version consistency
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- run: ./scripts/check-version-consistency.sh

# Debian/Ubuntu/Raspberry Pi OS — the flagship, built natively per arch.
Expand All @@ -39,7 +39,7 @@ jobs:
- { arch: arm64, runner: ubuntu-24.04-arm }
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Install FFmpeg/OpenSSL dev libraries
run: |
Expand All @@ -49,15 +49,15 @@ jobs:
libavutil-dev libavformat-dev libavfilter-dev \
libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable

# Build caches hold objects compiled against this runner's FFmpeg. When
# GitHub moves ubuntu-latest to a new release, an old cache links against
# the new libraries and fails on removed functions, so key on the version.
- name: Key the build cache to this FFmpeg
run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV"

- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
key: ${{ env.FFMPEG_KEY }}

Expand All @@ -84,7 +84,7 @@ jobs:
fi
dpkg-deb -c "$deb"

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: deb-${{ matrix.arch }}
path: target/debian/*.deb
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
'pkgconfig(libavdevice)' 'pkgconfig(libswscale)' \
'pkgconfig(libswresample)'

- uses: actions/checkout@v4
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Mark workspace as a safe git directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
Expand All @@ -137,7 +137,7 @@ jobs:
find "$(rpm --eval %_topdir)/RPMS" -name '*.rpm' -exec cp {} out/ \;
ls -l out

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: rpm-${{ matrix.distro }}
path: out/*.rpm
Expand All @@ -153,7 +153,7 @@ jobs:
- name: Install build dependencies
run: pacman -Syu --noconfirm base-devel git rust ffmpeg openssl clang

- uses: actions/checkout@v4
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Build package
run: |
Expand All @@ -177,7 +177,7 @@ jobs:
mkdir -p out && cp /tmp/build/*.pkg.tar.zst out/
ls -l out

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: arch-pkg
path: out/*.pkg.tar.zst
Expand All @@ -192,7 +192,7 @@ jobs:
name: OpenAPI spec
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Install FFmpeg/OpenSSL dev libraries
run: |
Expand All @@ -202,15 +202,15 @@ jobs:
libavutil-dev libavformat-dev libavfilter-dev \
libavdevice-dev libavcodec-dev libswscale-dev libswresample-dev

- uses: dtolnay/rust-toolchain@stable
- uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable

# Build caches hold objects compiled against this runner's FFmpeg. When
# GitHub moves ubuntu-latest to a new release, an old cache links against
# the new libraries and fails on removed functions, so key on the version.
- name: Key the build cache to this FFmpeg
run: echo "FFMPEG_KEY=$(. /etc/os-release; echo "$ID-$VERSION_ID")-avcodec-$(pkg-config --modversion libavcodec)" >> "$GITHUB_ENV"

- uses: Swatinem/rust-cache@v2
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
key: ${{ env.FFMPEG_KEY }}

Expand All @@ -227,7 +227,7 @@ jobs:
sys.exit(0 if paths > 50 else 'suspiciously few paths')
"

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: openapi
path: openapi.json
Expand All @@ -253,9 +253,9 @@ jobs:
- { distro: arch, arch: amd64, runner: ubuntu-24.04, artifact: arch-pkg }
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: ${{ matrix.artifact }}
path: pkg
Expand All @@ -265,7 +265,7 @@ jobs:

- name: Upload logs
if: always()
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: packaging-logs-${{ matrix.artifact }}
path: target/e2e/${{ matrix.distro }}/logs
Expand All @@ -274,7 +274,7 @@ jobs:
- name: Mark the package verified
run: echo "${{ matrix.artifact }} passed its install test at ${{ github.sha }}" > verified.txt

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: verified-${{ matrix.artifact }}
path: verified.txt
Expand All @@ -288,7 +288,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# One directory per artifact, so a package can be matched to its marker.
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
path: downloaded

Expand Down Expand Up @@ -327,7 +327,7 @@ jobs:
# The hand-written entry for this version, if CHANGELOG.md has one. Falls
# back to GitHub's generated commit list, which is better than nothing but
# says little to someone deciding whether to upgrade.
- uses: actions/checkout@v4
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with: { path: src }

- name: Extract release notes
Expand Down
Loading
Loading