Skip to content

Commit

Permalink
Create gen.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZekeLu committed May 25, 2021
1 parent 7c9d7a0 commit 4d257ad
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/gen.yml
@@ -0,0 +1,53 @@
name: Gen

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
inputs:
chromium:
description: 'chromium protocol version'
required: false
default: ''
v8:
description: 'v8 protocol version'
required: false
default: ''

jobs:

build:
runs-on: ubuntu-latest
steps:
- name: Checkout pdlgen
uses: actions/checkout@v2
with:
path: pdlgen

- name: Checkout cdproto
uses: actions/checkout@v2
with:
repository: ZekeLu/cdproto
fetch-depth: 0
path: cdproto

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x

- name: Build and run cdproto-gen
working-directory: ./pdlgen
run: |
go build -v ./...
./cdproto-gen -chromium=${{ github.event.inputs.chromium }} -v8=${{ github.event.inputs.v8 }} -out=../cdproto
- name: Commit changes
working-directory: ./cdproto
run: |
git status
git add .
git commit -m "test"
if: github.event == 'workflow_dispatch'

0 comments on commit 4d257ad

Please sign in to comment.