Parcourir la source

Remove action "upload-artifacts" from build workflow (#626)

* rm upload artifacts to GitHub
* Skip lint_c if no source files were modified

Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
rusdacent il y a 4 ans
Parent
commit
eb83395cc3
2 fichiers modifiés avec 8 ajouts et 9 suppressions
  1. 0 8
      .github/workflows/build.yml
  2. 8 1
      .github/workflows/lint_c.yml

+ 0 - 8
.github/workflows/build.yml

@@ -157,14 +157,6 @@ jobs:
               >> artifacts/flipper-z-${TARGET}-full-${SUFFIX}.bin
           done
 
-      - name: 'Publish artifacts'
-        uses: actions/upload-artifact@v2
-        with:
-          name: artifacts
-          path: artifacts/*
-          if-no-files-found: error
-          retention-days: 7
-
       - name: 'Upload artifacts to update server'
         uses: burnett01/rsync-deployments@4.1
         with:

+ 8 - 1
.github/workflows/lint_c.yml

@@ -1,6 +1,13 @@
 name: 'Lint C/C++ with clang-format'
 
-on: push
+on:
+  push:
+    paths:
+      - '**.h'
+      - '**.c'
+      - '**.hpp'
+      - '**.cpp'
+  pull_request:
 
 env:
   TARGETS: f6