-
-
Notifications
You must be signed in to change notification settings - Fork 105
33 lines (28 loc) · 1011 Bytes
/
ci-build_test.yaml
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
# Perform continuous integration tests on updates and pull requests
name: Build test
on:
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
klippy:
- 'klippy/**'
- 'test/**'
- 'scripts/**'
klipper:
- 'src/**'
- 'lib/**'
- 'test/**'
- name: Test Klippy Only
if: steps.changes.outputs.klippy == 'true' && steps.changes.outputs.klipper == 'false'
run: docker run -v $PWD:/klipper ${{ secrets.DOCKERHUB_USERNAME }}/klipper-build:latest "./scripts/ci-build.sh" 2>&1
- name: Test Klipper Full
if: steps.changes.outputs.klippy == 'true' && steps.changes.outputs.klipper == 'true'
run: docker run -v $PWD:/klipper ${{ secrets.DOCKERHUB_USERNAME }}/klipper-build:latest "./scripts/ci-build.sh" compile 2>&1