Skip to content

Commit 359a118

Browse files
mgredsaghul
authored andcommitted
Add qjsc to release artifacts
1 parent 229b07b commit 359a118

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ jobs:
2323
cd ..
2424
cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN)
2525
mv build/qjs build/qjs-linux-x86
26+
mv build/qjsc build/qjsc-linux-x86
2627
- name: check
2728
shell: alpine.sh {0}
2829
run: |
29-
file build/qjs-linux-x86
30+
file build/qjs-linux-x86 build/qjsc-linux-x86
3031
- name: upload
3132
uses: actions/upload-artifact@v3
3233
with:
3334
name: qjs
34-
path: build/qjs-linux-x86
35+
path: build/*-linux-x86
3536

3637
linux-x86_64:
3738
runs-on: ubuntu-latest
@@ -50,15 +51,16 @@ jobs:
5051
cd ..
5152
cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN)
5253
mv build/qjs build/qjs-linux-x86_64
54+
mv build/qjsc build/qjsc-linux-x86_64
5355
- name: check
5456
shell: alpine.sh {0}
5557
run: |
56-
file build/qjs-linux-x86_64
58+
file build/qjs-linux-x86_64 build/qjsc-linux-x86_64
5759
- name: upload
5860
uses: actions/upload-artifact@v3
5961
with:
6062
name: qjs
61-
path: build/qjs-linux-x86_64
63+
path: build/*-linux-x86_64
6264

6365
macos:
6466
runs-on: macos-latest
@@ -71,14 +73,15 @@ jobs:
7173
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..
7274
make -j$(getconf _NPROCESSORS_ONLN)
7375
mv qjs qjs-darwin
76+
mv qjsc qjsc-darwin
7477
- name: check
7578
run: |
76-
lipo -info build/qjs-darwin
79+
lipo -info build/qjs-darwin build/qjsc-darwin
7780
- name: upload
7881
uses: actions/upload-artifact@v3
7982
with:
8083
name: qjs
81-
path: build/qjs-darwin
84+
path: build/*-darwin
8285

8386
windows-x86:
8487
runs-on: windows-latest
@@ -102,14 +105,15 @@ jobs:
102105
run: |
103106
make
104107
mv build/qjs.exe build/qjs-windows-x86.exe
108+
mv build/qjsc.exe build/qjsc-windows-x86.exe
105109
- name: check
106110
run: |
107-
ldd build/qjs-windows-x86.exe
111+
ldd build/qjs-windows-x86.exe build/qjsc-windows-x86.exe
108112
- name: upload
109113
uses: actions/upload-artifact@v3
110114
with:
111115
name: qjs
112-
path: build/qjs-windows-x86.exe
116+
path: build/*-windows-x86.exe
113117

114118
windows-x86_64:
115119
runs-on: windows-latest
@@ -133,14 +137,15 @@ jobs:
133137
run: |
134138
make
135139
mv build/qjs.exe build/qjs-windows-x86_64.exe
140+
mv build/qjsc.exe build/qjsc-windows-x86_64.exe
136141
- name: check
137142
run: |
138-
ldd build/qjs-windows-x86_64.exe
143+
ldd build/qjs-windows-x86_64.exe build/qjsc-windows-x86_64.exe
139144
- name: upload
140145
uses: actions/upload-artifact@v3
141146
with:
142147
name: qjs
143-
path: build/qjs-windows-x86_64.exe
148+
path: build/*-windows-x86_64.exe
144149

145150
upload-to-release:
146151
needs: [linux-x86, linux-x86_64, macos, windows-x86, windows-x86_64]
@@ -154,8 +159,5 @@ jobs:
154159
uses: softprops/action-gh-release@v1
155160
with:
156161
files: |
157-
build/qjs/qjs-linux-x86_64
158-
build/qjs/qjs-linux-x86
159-
build/qjs/qjs-windows-x86.exe
160-
build/qjs/qjs-windows-x86_64.exe
161-
build/qjs/qjs-darwin
162+
build/qjs/qjs-*
163+
build/qjs/qjsc-*

0 commit comments

Comments
 (0)