templates: ready-to-apply CI workflows for phyllomeos, xml-definition-for-domains, rpm-sources
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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-43-x86_64 --init
|
||||
- name: Install build deps
|
||||
run: |
|
||||
mock -r fedora-43-x86_64 --install git make gcc
|
||||
- name: Smoke build
|
||||
run: |
|
||||
mock -r fedora-43-x86_64 --copyin . /builddir/src
|
||||
mock -r fedora-43-x86_64 --shell --enable-network --isolation=simple << 'EOF'
|
||||
cd /builddir/src
|
||||
make || true
|
||||
EOF
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: mock -r fedora-43-x86_64 --clean
|
||||
Reference in New Issue
Block a user