Browse Source

create binaries for the releases (#3084)

* 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 <jedel0124@gmail.com>

---------

Co-authored-by: José Julián Espina <jedel0124@gmail.com>
pull/3114/head
Jason Williams 1 year ago committed by GitHub
parent
commit
315b91b090
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 35
      .github/workflows/release.yml
  2. 1
      .prettierignore

35
.github/workflows/release.yml

@ -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
.prettierignore

@ -1,5 +1,6 @@
# Ignore artifacts:
*.rs
*.yml
target
node_modules
boa_engine/benches/bench_scripts/mini_js.js

Loading…
Cancel
Save