Refactor workflows to allow conditionals

This commit is contained in:
Martin Šach 2024-11-21 14:57:16 +01:00
parent ae97d00c34
commit f62104aa84
5 changed files with 63 additions and 41 deletions

View File

@ -1,40 +0,0 @@
name: Build
on:
push:
workflow_dispatch:
jobs:
build_osx:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_osx.yml@master
secrets: inherit
with:
actions_branch: master
build_osx_asan:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_osx.yml@master
secrets: inherit
needs: build_osx
with:
with_asan: true
actions_branch: master
build_win:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_windows.yml@master
secrets: inherit
with:
actions_branch: master
build_flatpak:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_flatpak.yml@master
secrets: inherit
with:
actions_branch: master
build_flatpak_asan:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_flatpak.yml@master
secrets: inherit
needs: build_flatpak
with:
with_asan: true
actions_branch: master

20
.github/workflows/build_flatpak.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Build flatpak
on:
push:
workflow_dispatch:
jobs:
build_flatpak:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_flatpak.yml@master
secrets: inherit
with:
actions_branch: master
build_flatpak_asan:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_flatpak.yml@master
secrets: inherit
needs: build_flatpak
with:
with_asan: true
actions_branch: master

20
.github/workflows/build_osx.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Build osx
on:
push:
workflow_dispatch:
jobs:
build_osx:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_osx.yml@master
secrets: inherit
with:
actions_branch: master
build_osx_asan:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_osx.yml@master
secrets: inherit
needs: build_osx
with:
with_asan: true
actions_branch: master

23
.github/workflows/build_windows.yml vendored Normal file
View File

@ -0,0 +1,23 @@
name: Build windows
on:
push:
workflow_dispatch:
inputs:
create_pdb:
description: 'Zip pdbs'
default: false
type: bool
create_installer:
description: 'Create installer'
default: false
type: bool
jobs:
build_win:
uses: Prusa-Development/PrusaSlicer-Actions/.github/workflows/build_windows.yml@master
secrets: inherit
with:
actions_branch: master
create_pdb: ${{ inputs.create_pdb }}
create_installer: ${{ inputs.create_installer }}

View File

@ -38,7 +38,6 @@ option(SLIC3R_GUI "Compile PrusaSlicer with GUI components (OpenGL, wxWidg
option(SLIC3R_FHS "Assume PrusaSlicer is to be installed in a FHS directory structure" 0)
option(SLIC3R_PCH "Use precompiled headers" 1)
option(SLIC3R_MSVC_COMPILE_PARALLEL "Compile on Visual Studio in parallel" 1)
option(SLIC3R_MSVC_PDB "Generate PDB files on MSVC in Release mode" 1)
option(SLIC3R_ASAN "Enable ASan on Clang and GCC" 0)
option(SLIC3R_UBSAN "Enable UBSan on Clang and GCC" 0)
option(SLIC3R_ENABLE_FORMAT_STEP "Enable compilation of STEP file support" ON)