Skip to content

Commit d4969c8

Browse files
committed
gh action / cmake / mingw: archive artifact files directly (without tar).
1 parent d2426f8 commit d4969c8

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

.github/workflows/cmake-cross-mingw.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,11 @@ jobs:
4747
run: find build/
4848
- name: prepare artifact
4949
run: |
50-
mkdir -vp artifacts/bin
51-
cp -v build/shared/src/libadf* artifacts/bin/
52-
cp -v build/shared/examples/*.exe artifacts/bin/
53-
mkdir -v artifacts/include
54-
cp -vR src/*.h artifacts/include
55-
cp -vR BUGS.md \
56-
NOTES.md \
57-
README.md \
58-
COPYING* \
59-
AUTHORS \
60-
ChangeLog \
61-
TODO \
62-
doc \
63-
artifacts/
50+
mkdir -vp bin
51+
cp -v build/shared/src/libadf* bin/
52+
cp -v build/shared/examples/*.exe bin/
53+
mkdir -v include
54+
cp -vR src/*.h include
6455
cd artifacts ; \
6556
tar cvzf ../adflib-mingw-${{ matrix.build_type }}.tgz *
6657
cd ..
@@ -69,7 +60,16 @@ jobs:
6960
# name: adflib-${{ env.ADFLIB_TAG }}-mingw
7061
name: adflib-mingw-${{ matrix.build_type }}
7162
path: |
72-
adflib-mingw-${{ matrix.build_type }}.tgz
63+
AUTHORS
64+
BUGS.md
65+
ChangeLog
66+
COPYING*
67+
NOTES.md
68+
README.md
69+
TODO
70+
bin
71+
doc
72+
include
7373
7474
test:
7575
needs: build
@@ -85,12 +85,12 @@ jobs:
8585
# name: adflib-${{ env.ADFLIB_TAG }}-mingw
8686
name: adflib-mingw-${{ matrix.build_type }}
8787
path: .
88-
- name: extract file from the artifact
89-
run: tar xzvf adflib-mingw-${{ matrix.build_type }}.tgz
9088
- name: list files extracted from the artifact
9189
shell: bash
92-
run: find bin/
93-
- name: show properties of binaries (installed)
90+
run: |
91+
find bin/
92+
find include/
93+
- name: show properties of binaries
9494
shell: bash
9595
run: ldd bin/unadf
9696
- name: configure tests

0 commit comments

Comments
 (0)