Skip to content

Commit

Permalink
create binaries for the releases (#3084)
Browse files Browse the repository at this point in the history
* create binaires for the releases

* update from comments

* cleaner asset name

* don't have prettier run against github workflows

* Update .github/workflows/release.yml

Co-authored-by: José Julián Espina <[email protected]>

---------

Co-authored-by: José Julián Espina <[email protected]>
  • Loading branch information
jasonwilliams and jedel1043 authored Jul 5, 2023
1 parent 5eb8541 commit 315b91b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,38 @@ jobs:
publish_dir: ./dist
destination_dir: playground
github_token: ${{ secrets.GITHUB_TOKEN }}

release-binaries:
name: Publish binaries
strategy:
fail-fast: false
matrix:
build: [linux, macos, win-msvc]
include:
- build: linux
os: ubuntu-20.04
rust: stable
target: x86_64-unknown-linux-gnu
asset_name: boa-linux-amd64
- build: macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
asset_name: boa-macos-amd64
- build: win-msvc
os: windows-2019
rust: stable
target: x86_64-pc-windows-msvc
asset_name: boa-windows-amd64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --target ${{ matrix.target }} --verbose --release --locked --bin boa
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.target }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ignore artifacts:
*.rs
*.yml
target
node_modules
boa_engine/benches/bench_scripts/mini_js.js
Expand Down

0 comments on commit 315b91b

Please sign in to comment.