mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
CI: Put build-deb
as its own job
This duplicates the "build-deb" job, but make it possible to speed-up a bit more the CI runs, because we're not waiting for all the debian packages to build.
This commit is contained in:
parent
9d69e3b261
commit
65f7bce0f4
1 changed files with 57 additions and 3 deletions
60
.github/workflows/ci.yml
vendored
60
.github/workflows/ci.yml
vendored
|
@ -152,7 +152,7 @@ jobs:
|
||||||
- name: Run CLI tests
|
- name: Run CLI tests
|
||||||
run: poetry run make test
|
run: poetry run make test
|
||||||
|
|
||||||
build-deb:
|
build-all-debs:
|
||||||
needs:
|
needs:
|
||||||
- build-container-image
|
- build-container-image
|
||||||
name: "build-deb (${{ matrix.distro }} ${{ matrix.version }})"
|
name: "build-deb (${{ matrix.distro }} ${{ matrix.version }})"
|
||||||
|
@ -170,8 +170,6 @@ jobs:
|
||||||
version: "24.10"
|
version: "24.10"
|
||||||
- distro: debian
|
- distro: debian
|
||||||
version: bullseye
|
version: bullseye
|
||||||
- distro: debian
|
|
||||||
version: bookworm
|
|
||||||
- distro: debian
|
- distro: debian
|
||||||
version: trixie
|
version: trixie
|
||||||
steps:
|
steps:
|
||||||
|
@ -221,6 +219,62 @@ jobs:
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
|
|
||||||
|
build-deb:
|
||||||
|
needs:
|
||||||
|
- build-container-image
|
||||||
|
name: "build-deb (${{ matrix.distro }} ${{ matrix.version }})"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- distro: debian
|
||||||
|
version: bookworm
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: "3.10"
|
||||||
|
|
||||||
|
- name: Login to GHCR
|
||||||
|
run: |
|
||||||
|
echo ${{ github.token }} | podman login ghcr.io -u USERNAME --password-stdin
|
||||||
|
|
||||||
|
- name: Get the dev environment
|
||||||
|
run: |
|
||||||
|
./dev_scripts/env.py \
|
||||||
|
--distro ${{ matrix.distro }} \
|
||||||
|
--version ${{ matrix.version }} \
|
||||||
|
build-dev --sync
|
||||||
|
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Restore container cache
|
||||||
|
uses: actions/cache/restore@v4
|
||||||
|
with:
|
||||||
|
key: v2-${{ steps.date.outputs.date }}-${{ hashFiles('Dockerfile', 'dangerzone/conversion/common.py', 'dangerzone/conversion/doc_to_pixels.py', 'dangerzone/conversion/pixels_to_pdf.py', 'poetry.lock', 'gvisor_wrapper/entrypoint.py') }}
|
||||||
|
path: |-
|
||||||
|
share/container.tar.gz
|
||||||
|
share/image-id.txt
|
||||||
|
fail-on-cache-miss: true
|
||||||
|
|
||||||
|
- name: Build Dangerzone .deb
|
||||||
|
run: |
|
||||||
|
./dev_scripts/env.py --distro ${{ matrix.distro }} \
|
||||||
|
--version ${{ matrix.version }} \
|
||||||
|
run --dev --no-gui ./dangerzone/install/linux/build-deb.py
|
||||||
|
|
||||||
|
- name: Upload Dangerzone .deb
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: dangerzone-${{ matrix.distro }}-${{ matrix.version }}.deb
|
||||||
|
path: "deb_dist/dangerzone_*_*.deb"
|
||||||
|
if-no-files-found: error
|
||||||
|
compression-level: 0
|
||||||
|
|
||||||
install-deb:
|
install-deb:
|
||||||
name: "install-deb (${{ matrix.distro }} ${{ matrix.version }})"
|
name: "install-deb (${{ matrix.distro }} ${{ matrix.version }})"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue