Add qjsc to release artifacts

This commit is contained in:
Marc Redemske 2024-01-22 14:13:29 +01:00 committed by Saúl Ibarra Corretgé
parent 229b07b9b2
commit 359a118562

View file

@ -23,15 +23,16 @@ jobs:
cd .. cd ..
cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN) cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN)
mv build/qjs build/qjs-linux-x86 mv build/qjs build/qjs-linux-x86
mv build/qjsc build/qjsc-linux-x86
- name: check - name: check
shell: alpine.sh {0} shell: alpine.sh {0}
run: | run: |
file build/qjs-linux-x86 file build/qjs-linux-x86 build/qjsc-linux-x86
- name: upload - name: upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: qjs name: qjs
path: build/qjs-linux-x86 path: build/*-linux-x86
linux-x86_64: linux-x86_64:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -50,15 +51,16 @@ jobs:
cd .. cd ..
cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN) cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN)
mv build/qjs build/qjs-linux-x86_64 mv build/qjs build/qjs-linux-x86_64
mv build/qjsc build/qjsc-linux-x86_64
- name: check - name: check
shell: alpine.sh {0} shell: alpine.sh {0}
run: | run: |
file build/qjs-linux-x86_64 file build/qjs-linux-x86_64 build/qjsc-linux-x86_64
- name: upload - name: upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: qjs name: qjs
path: build/qjs-linux-x86_64 path: build/*-linux-x86_64
macos: macos:
runs-on: macos-latest runs-on: macos-latest
@ -71,14 +73,15 @@ jobs:
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" .. cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..
make -j$(getconf _NPROCESSORS_ONLN) make -j$(getconf _NPROCESSORS_ONLN)
mv qjs qjs-darwin mv qjs qjs-darwin
mv qjsc qjsc-darwin
- name: check - name: check
run: | run: |
lipo -info build/qjs-darwin lipo -info build/qjs-darwin build/qjsc-darwin
- name: upload - name: upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: qjs name: qjs
path: build/qjs-darwin path: build/*-darwin
windows-x86: windows-x86:
runs-on: windows-latest runs-on: windows-latest
@ -102,14 +105,15 @@ jobs:
run: | run: |
make make
mv build/qjs.exe build/qjs-windows-x86.exe mv build/qjs.exe build/qjs-windows-x86.exe
mv build/qjsc.exe build/qjsc-windows-x86.exe
- name: check - name: check
run: | run: |
ldd build/qjs-windows-x86.exe ldd build/qjs-windows-x86.exe build/qjsc-windows-x86.exe
- name: upload - name: upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: qjs name: qjs
path: build/qjs-windows-x86.exe path: build/*-windows-x86.exe
windows-x86_64: windows-x86_64:
runs-on: windows-latest runs-on: windows-latest
@ -133,14 +137,15 @@ jobs:
run: | run: |
make make
mv build/qjs.exe build/qjs-windows-x86_64.exe mv build/qjs.exe build/qjs-windows-x86_64.exe
mv build/qjsc.exe build/qjsc-windows-x86_64.exe
- name: check - name: check
run: | run: |
ldd build/qjs-windows-x86_64.exe ldd build/qjs-windows-x86_64.exe build/qjsc-windows-x86_64.exe
- name: upload - name: upload
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: qjs name: qjs
path: build/qjs-windows-x86_64.exe path: build/*-windows-x86_64.exe
upload-to-release: upload-to-release:
needs: [linux-x86, linux-x86_64, macos, windows-x86, windows-x86_64] needs: [linux-x86, linux-x86_64, macos, windows-x86, windows-x86_64]
@ -154,8 +159,5 @@ jobs:
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
files: | files: |
build/qjs/qjs-linux-x86_64 build/qjs/qjs-*
build/qjs/qjs-linux-x86 build/qjs/qjsc-*
build/qjs/qjs-windows-x86.exe
build/qjs/qjs-windows-x86_64.exe
build/qjs/qjs-darwin