forked from Slicer/Slicer
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.4 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CI (Build)
on:
# Triggers the workflow on push or pull request events
push:
branches:
- "main"
pull_request:
branches:
- "*"
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
build-slicer:
name: Build Slicer
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
with:
filters: |
paths-to-include:
- ".github/actions/slicer-build/**"
- "Applications/**"
- "Base/**"
- "CMake/**"
- "Extensions/**"
- "Libs/**"
- "Modules/**"
- "Resources/**"
- "Testing/**"
- "CMakeLists.txt"
- name: 'Build Slicer'
id: slicer-build
if: steps.changes.outputs.paths-to-include == 'true'
uses: ./.github/actions/slicer-build
- name: 'Upload Slicer package'
if: steps.changes.outputs.paths-to-include == 'true'
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
with:
name: slicer-package
path: ${{ github.workspace }}/${{ steps.slicer-build.outputs.package }}
retention-days: 1