Skip to content

Commit d6716b8

Browse files
add command for building library zip
1 parent f19bfac commit d6716b8

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/branch.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ jobs:
126126
- name: Build Toolchain
127127
run: make -j4 -C ${{env.TOOLCHAIN_PATH}} V=1
128128
- name: Build Libraries
129-
run: make -j4 -C ${{env.TOOLCHAIN_PATH}} libs V=1
129+
run: |
130+
make -j4 -C ${{env.TOOLCHAIN_PATH}} libs V=1
131+
make -j4 -C ${{env.TOOLCHAIN_PATH}} libs-zip V=1
130132
131133
- name: Install Toolchain
132134
env:

.github/workflows/make.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ jobs:
128128
- name: Build Toolchain
129129
run: make -j4 -C ${{env.TOOLCHAIN_PATH}} V=1
130130
- name: Build Libraries
131-
run: make -j4 -C ${{env.TOOLCHAIN_PATH}} libs V=1
131+
run: |
132+
make -j4 -C ${{env.TOOLCHAIN_PATH}} libs V=1
133+
make -j4 -C ${{env.TOOLCHAIN_PATH}} libs-zip V=1
132134
133135
- name: Install Toolchain
134136
env:
@@ -206,6 +208,12 @@ jobs:
206208
name: clibs
207209
path: ${{env.AUTOTESTER_LIBS_GROUP}}
208210

211+
- name: Upload Libraries Zip
212+
uses: actions/upload-artifact@v2
213+
with:
214+
name: clibs_separately_in_zip
215+
path: ${{github.workspace}}/toolchain/clibs
216+
209217
test:
210218
needs: build
211219
environment: Autotester

makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ libs: $(LIBS) $(TOOLS)
7272
$(Q)$(call NATIVEEXE,tools/convbin/bin/convbin) --oformat 8xg-auto-extract \
7373
$(foreach library,$(LIBS),$(addprefix --input ,$(call SRCDIR,$(library))/$(library).8xv)) --output $(call NATIVEPATH,clibs.8xg)
7474

75+
libs-zip:
76+
$(Q)$(call MKDIR,clibs)
77+
$(Q)$(foreach library,$(LIBS),$(call COPY,$(call NATIVEPATH,$(call SRCDIR,$(library))/$(library).8xv),clibs) &&) $(call NATIVEEXE,7z) a clibs_separately_in_zip.zip clibs
78+
$(Q)$(call RMDIR,clibs)
79+
7580
clean: $(addprefix clean-,$(TOOLS)) $(addprefix clean-,$(SRCS)) $(addprefix clean-,$(LIBS))
7681
$(Q)$(call REMOVE,src/linker_script)
7782
$(Q)$(call REMOVE,clibs.8xg)

0 commit comments

Comments
 (0)