0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-24 15:19:31 -05:00

ci: add "release" action workflow (#1150)

This workflow will bump a version and create a tag which will kick-off another
build that will build release binary archives and create a GH release.

Maintainer is still responsible for building artifacts on M1 mac.
This commit is contained in:
Bartek Iwańczuk 2022-12-06 04:21:44 +01:00 committed by GitHub
parent 3e8a572ceb
commit afe76971be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

37
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: release
on:
workflow_dispatch:
inputs:
releaseKind:
description: 'Kind of release'
default: 'minor'
type: choice
options:
- minor
- patch
required: true
jobs:
rust:
name: release
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
token: ${{ secrets.DENOBOT_PAT }}
- uses: denoland/setup-deno@v1
- uses: dtolnay/rust-toolchain@stable
- name: Tag and release
env:
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}
GH_WORKFLOW_ACTOR: ${{ github.actor }}
run: |
git config user.email "denobot@users.noreply.github.com"
git config user.name "denobot"
deno run -A https://raw.githubusercontent.com/denoland/automation/0.16.1/tasks/publish_release.ts --${{github.event.inputs.releaseKind}} --skip-release

View file

@ -161,3 +161,17 @@ increasing amount of V8's API in Rust.
**When building I get unknown argument: '-gno-inline-line-tables'**
Use `export GN_ARGS="no_inline_line_tables=false"` during build.
## For maintainers
**Cut a release**
Go to https://github.com/denoland/rusty_v8/actions/workflows/release.yml, select
proper release kind and wait for the workflow to complete. It will bump the
version and create a tag. You will need to manually upload binary archives for
M1 build.
```
$ V8_FROM_SOURCE=1 cargo build
$ V8_FROM_SOURCE=1 cargo build --release
```