소스 검색

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 4 년 전
부모
커밋
eb83395cc3
2개의 변경된 파일8개의 추가작업 그리고 9개의 파일을 삭제
  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
               >> artifacts/flipper-z-${TARGET}-full-${SUFFIX}.bin
           done
           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'
       - name: 'Upload artifacts to update server'
         uses: burnett01/rsync-deployments@4.1
         uses: burnett01/rsync-deployments@4.1
         with:
         with:

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

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