Fixes detached head commit parsing. #159
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |