Bladeren bron

Restore test_builds action to bugfix

Scott Lahteine 4 jaren geleden
bovenliggende
commit
473d640e88
1 gewijzigde bestanden met toevoegingen van 102 en 0 verwijderingen
  1. 102
    0
      .github/workflows/test-builds.yml

+ 102
- 0
.github/workflows/test-builds.yml Bestand weergeven

@@ -0,0 +1,102 @@
1
+#
2
+# test-builds.yml
3
+# Do test builds to catch compile errors
4
+#
5
+
6
+name: CI
7
+
8
+on:
9
+  pull_request:
10
+    branches:
11
+    - bugfix-2.0.x
12
+    - dev-2.1.x
13
+    paths-ignore:
14
+    - config/**
15
+    - data/**
16
+    - docs/**
17
+    - '**/*.md'
18
+
19
+jobs:
20
+  test_builds:
21
+
22
+    runs-on: ubuntu-latest
23
+
24
+    strategy:
25
+      matrix:
26
+        test-platform:
27
+        # Base Environments
28
+
29
+        - DUE
30
+        - esp32
31
+        - linux_native
32
+        - megaatmega2560
33
+        - teensy31
34
+        - teensy35
35
+
36
+        # Extended AVR Environments
37
+
38
+        - FYSETC_F6_13
39
+        - megaatmega1280
40
+        - rambo
41
+        - sanguino_atmega1284p
42
+        - sanguino_atmega644p
43
+
44
+        # Extended STM32 Environments
45
+
46
+        - STM32F103RC_bigtree
47
+        - STM32F103RC_bigtree_USB
48
+        - STM32F103RE_bigtree
49
+        - STM32F103RE_bigtree_USB
50
+        - STM32F103RC_fysetc
51
+        - jgaurora_a5s_a1
52
+        - STM32F103VE_longer
53
+        - STM32F407VE_black
54
+        - BIGTREE_SKR_PRO
55
+        - mks_robin
56
+        - ARMED
57
+
58
+        # Put lengthy tests last
59
+
60
+        - LPC1768
61
+        - LPC1769
62
+
63
+        # STM32 with non-STM framework. both broken for now. they should use HAL_STM32 which is working.
64
+
65
+        #- STM32F4
66
+        #- STM32F7
67
+
68
+        # Non-working environment tests
69
+
70
+        #- BIGTREE_BTT002
71
+        #- at90usb1286_cdc
72
+        #- at90usb1286_dfu
73
+        #- STM32F103CB_malyan
74
+        #- mks_robin_lite
75
+        #- mks_robin_mini
76
+        #- mks_robin_nano
77
+        #- SAMD51_grandcentral_m4
78
+
79
+    steps:
80
+
81
+    - name: Select Python 3.7
82
+      uses: actions/setup-python@v1
83
+      with:
84
+        python-version: '3.7' # Version range or exact version of a Python version to use, using semvers version range syntax.
85
+        architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
86
+
87
+    - name: Install PlatformIO
88
+      run: |
89
+        pip install -U https://github.com/platformio/platformio-core/archive/master.zip
90
+        platformio update
91
+
92
+    - name: Check out the PR
93
+      uses: actions/checkout@v2
94
+
95
+    - name: Run ${{ matrix.test-platform }} Tests
96
+      run: |
97
+        # Inline tests script
98
+        [[ "$GITHUB_REPOSITORY" == "MarlinFirmware/Marlin" ]] || exit 0
99
+        chmod +x buildroot/bin/*
100
+        chmod +x buildroot/share/tests/*
101
+        export PATH=./buildroot/bin/:./buildroot/share/tests/:${PATH}
102
+        run_tests . ${{ matrix.test-platform }}

Laden…
Annuleren
Opslaan