From 315b91b09027d92909c172f7a3c38c5aeaa0a7f8 Mon Sep 17 00:00:00 2001 From: Jason Williams <936006+jasonwilliams@users.noreply.github.com> Date: Wed, 5 Jul 2023 23:11:40 +0100 Subject: [PATCH] create binaries for the releases (#3084) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --------- Co-authored-by: José Julián Espina --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ .prettierignore | 1 + 2 files changed, 36 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3afa81b57d..9cb41649c6a 100644 --- a/.github/workflows/release.yml +++ b/.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 }} diff --git a/.prettierignore b/.prettierignore index 391d5c907b9..6f86fe09e2a 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,5 +1,6 @@ # Ignore artifacts: *.rs +*.yml target node_modules boa_engine/benches/bench_scripts/mini_js.js