Skip to content

Commit 22246b9

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

File tree

1 file changed

+19
-22
lines changed

1 file changed

+19
-22
lines changed

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

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,26 @@ 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/
64-
cd artifacts ; \
65-
tar cvzf ../adflib-mingw-${{ matrix.build_type }}.tgz *
66-
cd ..
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
6755
- uses: actions/upload-artifact@v4
6856
with:
6957
# name: adflib-${{ env.ADFLIB_TAG }}-mingw
7058
name: adflib-mingw-${{ matrix.build_type }}
7159
path: |
72-
adflib-mingw-${{ matrix.build_type }}.tgz
60+
AUTHORS
61+
BUGS.md
62+
ChangeLog
63+
COPYING*
64+
NOTES.md
65+
README.md
66+
TODO
67+
bin
68+
doc
69+
include
7370
7471
test:
7572
needs: build
@@ -85,12 +82,12 @@ jobs:
8582
# name: adflib-${{ env.ADFLIB_TAG }}-mingw
8683
name: adflib-mingw-${{ matrix.build_type }}
8784
path: .
88-
- name: extract file from the artifact
89-
run: tar xzvf adflib-mingw-${{ matrix.build_type }}.tgz
9085
- name: list files extracted from the artifact
9186
shell: bash
92-
run: find bin/
93-
- name: show properties of binaries (installed)
87+
run: |
88+
find bin/
89+
find include/
90+
- name: show properties of binaries
9491
shell: bash
9592
run: ldd bin/unadf
9693
- name: configure tests

0 commit comments

Comments
 (0)