forked from rogchap/v8go
-
-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (38 loc) · 871 Bytes
/
leakcheck.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Leak Check
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
workflow_call:
inputs:
sha:
description: "The commit to check out at. Defaults to the parent workflow's github.sha."
required: false
type: string
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.sha }}
- name: Set Up Workspace
# Submodules shouldn't cause a download.
run: |
set -o pipefail
go work init . $(ls ./deps/*_*/cgo.go | xargs -r dirname)
- name: Build Test
env:
CC: clang
CXX: clang++
run: |
go test -c --tags leakcheck
- name: Run Test
run: ./v8go.test