71 lines
2 KiB
YAML
71 lines
2 KiB
YAML
on:
|
|
push:
|
|
paths-ignore:
|
|
- "**/*.md"
|
|
- "README.md"
|
|
- "justfile"
|
|
|
|
env:
|
|
FEDORA_VERSION: 41
|
|
DEPENDENCIES: >-
|
|
'pkgconfig(CLI11)'
|
|
'pkgconfig(re2)'
|
|
'pkgconfig(libnotify)'
|
|
gcc-c++
|
|
meson
|
|
libasan
|
|
libubsan
|
|
git
|
|
just
|
|
python-unversioned-command
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
container:
|
|
image: betaco.de/mirror/fedora-minimal:${{ env.FEDORA_VERSION }}
|
|
options: --user root
|
|
steps:
|
|
- name: Determine prerequisites
|
|
id: prereq
|
|
run: |
|
|
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
|
|
- name: Install node
|
|
# if: ${{ env.ACT }}
|
|
if: ${{ steps.prereq.outputs.need_node == '1' }}
|
|
run: dnf5 --quiet --assumeyes --setopt=install_weak_deps=False install nodejs git
|
|
- name: Clone repository
|
|
uses: actions/checkout@v4
|
|
- name: Install dependencies
|
|
run: dnf5 --quiet --assumeyes --setopt=install_weak_deps=False install ${{ env.DEPENDENCIES }}
|
|
- name: Setup
|
|
run: just setup
|
|
- name: Build
|
|
run: just build
|
|
- name: Verify working executable
|
|
run: just run --version
|
|
|
|
build-x86:
|
|
runs-on: docker-amd64
|
|
container:
|
|
image: betaco.de/mirror/fedora-minimal:${{ env.FEDORA_VERSION }}
|
|
options: --user root
|
|
steps:
|
|
- name: Determine prerequisites
|
|
id: prereq
|
|
run: |
|
|
echo "need_node=$(command -v node >/dev/null 2>&1 && echo 0 || echo 1)" >> $GITHUB_OUTPUT
|
|
- name: Install node
|
|
# if: ${{ env.ACT }}
|
|
if: ${{ steps.prereq.outputs.need_node == '1' }}
|
|
run: dnf5 --quiet --assumeyes --setopt=install_weak_deps=False install nodejs git
|
|
- name: Clone repository
|
|
uses: actions/checkout@v4
|
|
- name: Install dependencies
|
|
run: dnf5 --quiet --assumeyes --setopt=install_weak_deps=False install ${{ env.DEPENDENCIES }}
|
|
- name: Setup
|
|
run: just setup
|
|
- name: Build
|
|
run: just build
|
|
- name: Verify working executable
|
|
run: just run --version
|