Vulkan/.gitea/workflows/build.yaml
Alexandre c88340db29
All checks were successful
Build VulkanEngine / build (push) Successful in 13m28s
Tweaked the action
2026-09-30 22:59:37 +02:00

54 lines
1.3 KiB
YAML

name: Build VulkanEngine
on:
push:
branches:
- vkguide
pull_request:
workflow_dispatch:
schedule:
- cron: "@weekly"
jobs:
build:
runs-on: ubuntu-22.04
container: git.alexdelcamp.fr/alexandre_1a/flake-actions:latest
steps:
- name: Checkout (avec submodules récursifs)
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: S'assurer que les flakes sont activés
run: |
mkdir -p ~/.config/nix
grep -q "experimental-features" ~/.config/nix/nix.conf 2>/dev/null || \
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
- name: Build using nix
run: |
nix build .#engine
- name: Bundle
run: |
nix bundle --bundler github:NixOS/bundlers#toAppImage .#engine --out-link ./engine-bundle
- name: Upload des artefacts
if: success()
uses: actions/upload-artifact@v3
with:
name: vulkan-engine
path: |
./engine-bundle
if-no-files-found: warn
- name: Notify routine
if: always()
run: |
curl \
-H "Title: [Routine] VulkanEngine build" \
-d "Build finished (status: ${{ job.status }})" \
https://ntfy.alexdelcamp.fr/FlakeBuild