summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-01-26 22:04:20 +0700
committerhathach <[email protected]>2021-01-26 22:04:20 +0700
commitc2d8aa058427b6b0bc61ab1ad7b49d8f1d52a923 (patch)
treea7484325c248b6da8d493d03a4248c319dba4f78
parent0a673de78afd990a992aacdd09c32abfa7c48e5b (diff)
limit artifact to only uf2 for now
due to the large size of combined binaries of all boards + all examples
-rw-r--r--.github/workflows/build.yml12
-rw-r--r--examples/rules.mk7
-rw-r--r--tools/build_family.py2
3 files changed, 9 insertions, 12 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 59f6f7eab..64abfb2ba 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -62,14 +62,10 @@ jobs:
- name: Build
run: python3 tools/build_family.py ${{ matrix.family }}
- - name: test
- run: |
- ls -a _bin/*
-
- #- uses: actions/upload-artifact@v2
- # with:
- # name: ${{ matrix.family }}
- # path: _bin/
+ - uses: actions/upload-artifact@v2
+ with:
+ name: ${{ matrix.family }}
+ path: _bin/
#TODO upload release assest upload
# Build all no-family (opharned) boards
diff --git a/examples/rules.mk b/examples/rules.mk
index 07bf9a7df..aac0fbb38 100644
--- a/examples/rules.mk
+++ b/examples/rules.mk
@@ -219,9 +219,10 @@ $(BIN):
@$(MKDIR) -p $@
# Copy binaries .elf, .bin, .hex, .uf2 to BIN for upload
+# due to large size of combined artifacts, only uf2 is uploaded for now
copy-artifact: $(BIN)
- @$(CP) $(BUILD)/$(PROJECT).elf $(BIN)
- @$(CP) $(BUILD)/$(PROJECT).bin $(BIN)
- @$(CP) $(BUILD)/$(PROJECT).hex $(BIN)
@$(CP) $(BUILD)/$(PROJECT).uf2 $(BIN)
+ #@$(CP) $(BUILD)/$(PROJECT).bin $(BIN)
+ #@$(CP) $(BUILD)/$(PROJECT).hex $(BIN)
+ #@$(CP) $(BUILD)/$(PROJECT).elf $(BIN)
diff --git a/tools/build_family.py b/tools/build_family.py
index 9828ab8c4..b178d8d41 100644
--- a/tools/build_family.py
+++ b/tools/build_family.py
@@ -66,7 +66,7 @@ def build_board(example, board):
skip_count += 1
print(build_format.format(example, board, success, '-', flash_size, sram_size))
else:
- subprocess.run("make -C examples/{} BOARD={} clean".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ #subprocess.run("make -C examples/{} BOARD={} clean".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
build_result = subprocess.run("make -j -C examples/{} BOARD={} all".format(example, board), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
if build_result.returncode == 0: