Skip to content

Add qjsc to release artifacts #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,16 @@ jobs:
cd ..
cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN)
mv build/qjs build/qjs-linux-x86
mv build/qjsc build/qjsc-linux-x86
- name: check
shell: alpine.sh {0}
run: |
file build/qjs-linux-x86
file build/qjs-linux-x86 build/qjsc-linux-x86
- name: upload
uses: actions/upload-artifact@v3
with:
name: qjs
path: build/qjs-linux-x86
path: build/*-linux-x86

linux-x86_64:
runs-on: ubuntu-latest
Expand All @@ -50,15 +51,16 @@ jobs:
cd ..
cmake --build build --target qjs_exe -j$(getconf _NPROCESSORS_ONLN)
mv build/qjs build/qjs-linux-x86_64
mv build/qjsc build/qjsc-linux-x86_64
- name: check
shell: alpine.sh {0}
run: |
file build/qjs-linux-x86_64
file build/qjs-linux-x86_64 build/qjsc-linux-x86_64
- name: upload
uses: actions/upload-artifact@v3
with:
name: qjs
path: build/qjs-linux-x86_64
path: build/*-linux-x86_64

macos:
runs-on: macos-latest
Expand All @@ -71,14 +73,15 @@ jobs:
cmake -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" ..
make -j$(getconf _NPROCESSORS_ONLN)
mv qjs qjs-darwin
mv qjsc qjsc-darwin
- name: check
run: |
lipo -info build/qjs-darwin
lipo -info build/qjs-darwin build/qjsc-darwin
- name: upload
uses: actions/upload-artifact@v3
with:
name: qjs
path: build/qjs-darwin
path: build/*-darwin

windows-x86:
runs-on: windows-latest
Expand All @@ -102,14 +105,15 @@ jobs:
run: |
make
mv build/qjs.exe build/qjs-windows-x86.exe
mv build/qjsc.exe build/qjsc-windows-x86.exe
- name: check
run: |
ldd build/qjs-windows-x86.exe
ldd build/qjs-windows-x86.exe build/qjsc-windows-x86.exe
- name: upload
uses: actions/upload-artifact@v3
with:
name: qjs
path: build/qjs-windows-x86.exe
path: build/*-windows-x86.exe

windows-x86_64:
runs-on: windows-latest
Expand All @@ -133,14 +137,15 @@ jobs:
run: |
make
mv build/qjs.exe build/qjs-windows-x86_64.exe
mv build/qjsc.exe build/qjsc-windows-x86_64.exe
- name: check
run: |
ldd build/qjs-windows-x86_64.exe
ldd build/qjs-windows-x86_64.exe build/qjsc-windows-x86_64.exe
- name: upload
uses: actions/upload-artifact@v3
with:
name: qjs
path: build/qjs-windows-x86_64.exe
path: build/*-windows-x86_64.exe

upload-to-release:
needs: [linux-x86, linux-x86_64, macos, windows-x86, windows-x86_64]
Expand All @@ -154,8 +159,5 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: |
build/qjs/qjs-linux-x86_64
build/qjs/qjs-linux-x86
build/qjs/qjs-windows-x86.exe
build/qjs/qjs-windows-x86_64.exe
build/qjs/qjs-darwin
build/qjs/qjs-*
build/qjs/qjsc-*