瀏覽代碼

Publish target_f1 artifacts in CI, build target_f2 in CI (#141)

* Publish target_f1 artifacts in CI

* Add target_f2 to CI
Vadim Kaushan 5 年之前
父節點
當前提交
33be546b94
共有 1 個文件被更改,包括 25 次插入0 次删除
  1. 25 0
      .github/workflows/ci.yml

+ 25 - 0
.github/workflows/ci.yml

@@ -32,3 +32,28 @@ jobs:
         uses: ./.github/actions/docker
         with:
           run: make -C target_f1
+
+      - name: Publish target_f1 artifacts
+        uses: actions/upload-artifact@v2
+        with:
+          name: target_f1
+          path: |
+            target_f1/build/target_prod.elf
+            target_f1/build/target_prod.bin
+            target_f1/build/target_prod.hex
+          if-no-files-found: error
+
+      - name: Build target_f2 in docker
+        uses: ./.github/actions/docker
+        with:
+          run: make -C target_f2
+
+      - name: Publish target_f2 artifacts
+        uses: actions/upload-artifact@v2
+        with:
+          name: target_f2
+          path: |
+            target_f2/build/target_prod.elf
+            target_f2/build/target_prod.bin
+            target_f2/build/target_prod.hex
+          if-no-files-found: error