Skip to content

Commit 11fc1d2

Browse files
committed
Compress artifacts for release step
1 parent a33bc6e commit 11fc1d2

2 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/build-binaries.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,17 @@ jobs:
168168
cd bin/binaries
169169
gcc ${{matrix.os.gcc-flags}} -Ilua-5.1.5/src/ -I/ -Llua-5.1.5/src/ moonc.c lpeg-1.0.2/lpvm.c lpeg-1.0.2/lpcap.c lpeg-1.0.2/lptree.c lpeg-1.0.2/lpcode.c lpeg-1.0.2/lpprint.c luafilesystem/src/lfs.o -l:liblua.a -lm -o build-output/${{matrix.os.moonc}}
170170
171+
# Archive the moon and moonc executables.
172+
- name: Archive moon & moonc executables
173+
uses: ihiroky/archive-action@v1
174+
with:
175+
root_dir: bin/binaries/build-output
176+
file_path: ${{matrix.os.artifact}}.zip
177+
verbose: true
178+
171179
# Upload them as artifacts
172180
- name: Upload build artifacts
173181
uses: actions/upload-artifact@v4
174182
with:
175183
name: ${{matrix.os.artifact}}
176-
path: bin/binaries/build-output/*
184+
path: ${{matrix.os.artifact}}.zip

.github/workflows/release-binaries.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ jobs:
2424
pattern: gmod-moonscript-*
2525
merge-multiple: true
2626

27-
# Display tree
28-
- name: Display tree
29-
run: tree
30-
3127
# Make a release with those artifacts.
3228
- name: Make release
3329
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)