Some checks failed
Build VulkanEngine / build (push) Failing after 1s
Removed auto run when pushing (debug)
55 lines
1.4 KiB
YAML
55 lines
1.4 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:ralismark/nix-appimage .#engine --out-link ./engine-bundle
|
|
|
|
- name: Upload des artefacts
|
|
if: success()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: vulkan-engine.zip
|
|
path: |
|
|
./engine-bundle
|
|
if-no-files-found: warn
|
|
archive: false
|
|
|
|
- name: Notify routine
|
|
if: always()
|
|
run: |
|
|
curl \
|
|
-H "Title: [Routine] VulkanEngine build" \
|
|
-d "Build finished (status: ${{ job.status }})" \
|
|
https://ntfy.alexdelcamp.fr/FlakeBuild
|