Skip to content

Bump jinja2 in /images/env-sphinx in the pip group across 1 directory #135

Bump jinja2 in /images/env-sphinx in the pip group across 1 directory

Bump jinja2 in /images/env-sphinx in the pip group across 1 directory #135

Workflow file for this run

name: "build"
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
linux-images:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- env-alpine
- env-android:jdk17
- env-android:jdk21
- env-android:latest
- env-archlinux
- env-debian
- env-fedora
- env-flutter:android
- env-flutter:linux
- env-opensuse
- env-sphinx
- env-ubuntu:14.04
- env-ubuntu:16.04
- env-ubuntu:18.04
- env-ubuntu:20.04
- env-ubuntu:22.04
- env-ubuntu:24.04
- env-ubuntu:latest
- env-ubuntu:nolibs
- toolchain-aarch64-linux-gnu
- toolchain-arm-bcm2708hardfp-linux-gnueabi
- toolchain-arm-linux-gnueabihf
- toolchain-mips-openwrt-linux-atheros
- toolchain-linux-android
name: linux/${{ matrix.image }}
env:
CACHE_FROM: /tmp/dockercache
CACHE_TO: /tmp/dockercache-new
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Restore cache
uses: actions/cache/restore@v4
with:
path: ${{ env.CACHE_FROM }}
key: ${{ runner.os }}-${{ matrix.image }}
- name: Setup buildx
run: |
docker buildx create --use
- name: Detect env
if: |
github.repository_owner == 'roc-streaming' &&
github.event_name == 'push' &&
github.ref == 'refs/heads/main'
run: |
echo "ENABLE_PUSH=1" >> $GITHUB_ENV
- name: Run docker
run: |
set -x
if [[ $ENABLE_PUSH = 1 ]]; then \
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
./make.py --push \
--cache-from=${{ env.CACHE_FROM }} --cache-to=${{ env.CACHE_TO }} \
${{ matrix.image }}
else
./make.py \
--cache-from=${{ env.CACHE_FROM }} --cache-to=${{ env.CACHE_TO }} \
${{ matrix.image }}
fi
- name: Save cache
uses: actions/cache/save@v4
if: always()
with:
path: ${{ env.CACHE_TO }}
key: ${{ runner.os }}-${{ matrix.image }}-${{ github.sha }}
windows-images:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
image:
- env-flutter
name: windows/${{ matrix.image }}
env:
CACHE_DIR: C:\dockercache
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Restore cache
uses: actions/cache/restore@v4
with:
path: ${{ env.CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.image }}
- name: Load images
run: |
Set-PSDebug -Trace 1
if (Test-Path -Path ${{ env.CACHE_DIR }}\rocstreaming) {
Get-ChildItem -Path ${{ env.CACHE_DIR }}\rocstreaming -Filter *.tar | ForEach-Object {
docker load -i $_.FullName
Remove-Item $_.FullName
}
}
- name: Detect env
if: |
github.repository_owner == 'roc-streaming' &&
github.event_name == 'push' &&
github.ref == 'refs/heads/main'
run: |
echo "ENABLE_PUSH=1" >> $env:GITHUB_ENV
- name: Run docker
run: |
Set-PSDebug -Trace 1
if ($env:ENABLE_PUSH -eq "1") {
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }}
python make.py --push ${{ matrix.image }}
} else {
python make.py ${{ matrix.image }}
}
- name: Save images
if: always()
run: |
Set-PSDebug -Trace 1
New-Item -ItemType Directory -Path ${{ env.CACHE_DIR }}\rocstreaming -Force `
-ErrorAction SilentlyContinue
docker images --format '{{.Repository}}:{{.Tag}}' `
| Select-String -Pattern "^rocstreaming/${{ matrix.image }}(:|$)" | ForEach-Object {
$image = $_.ToString()
$file = $image -Replace ":", "-"
docker save $image -o "${{ env.CACHE_DIR }}\$file.tar"
}
- name: Save cache
uses: actions/cache/save@v4
if: always()
with:
path: ${{ env.CACHE_DIR }}
key: ${{ runner.os }}-${{ matrix.image }}-${{ github.sha }}