Skip to content
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

windows added to release build pipeline #5

Merged
merged 9 commits into from
Nov 8, 2022
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
29 changes: 28 additions & 1 deletion .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
release_name: ${{ github.ref }}
draft: false
prerelease: false
release_assets:
release_assets_linux_mac:
name: Release assets
needs: create_release # we need to know the upload URL
runs-on: ${{ matrix.platform }} # we run many different builds
Expand All @@ -44,3 +44,30 @@ jobs:
asset_path: ./qjsc
# set type of the file you are uploading
asset_content_type: application/octet-stream
release_assets_windows:
name: Release assets (Windows)
needs: create_release # we need to know the upload URL
runs-on: ubuntu-latest
steps:
# checkout
- name: Checkout code
uses: actions/checkout@v1
- name: Set up MinGW
uses: egor-tensin/setup-mingw@v2
with:
platform: x64
- name: Build qjsc
run: make CONFIG_WIN32=y
- name: Upload release assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
# This is how it will be named on the release page.
asset_name: qjsc-win32-${{ runner.arch }}.exe
# The path to the file you want to upload.
asset_path: ./qjsc.exe
# set type of the file you are uploading
asset_content_type: application/octet-stream