Files

33 lines
883 B
YAML

name: ci
on:
push:
pull_request:
# Smoke test that the source set compiles under mock without publishing.
# Host job: mock needs real chroots on the runner VM.
jobs:
mock-smoke:
runs-on: fedora
defaults:
run:
shell: bash
steps:
- uses: https://git.phyllo.me/devops/checkout@v5
with:
fetch-depth: 0
- name: Initialize mock root
run: mock -r fedora-44-x86_64 --init
- name: Install build deps
run: |
mock -r fedora-44-x86_64 --install git make gcc
- name: Smoke build
run: |
mock -r fedora-44-x86_64 --copyin . /builddir/src
mock -r fedora-44-x86_64 --shell --enable-network --isolation=simple << 'EOF'
cd /builddir/src
make || true
EOF
- name: Cleanup
if: always()
run: mock -r fedora-44-x86_64 --clean