Skip to content

JACOBIN-600 Added return value for caught gfunctions in INVOKESTATIC,… #2456

JACOBIN-600 Added return value for caught gfunctions in INVOKESTATIC,…

JACOBIN-600 Added return value for caught gfunctions in INVOKESTATIC,… #2456

Workflow file for this run

name: Go build and test
env:
GO111MODULE: "on"
on:
push:
paths-ignore:
- '*.md'
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
nix-build-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@main
- name: Set up Go
uses: actions/setup-go@main
with:
go-version: '1.21.x'
cache: true
cache-dependency-path: "**/go.sum"
- name: Setup JDK
uses: actions/setup-java@main
with:
distribution: 'oracle'
java-version: '21'
- name: Build
run: |
cd src
go build -o . -v ./...
pwd
./jacobin -h
- name: Test
run: |
export JACOBIN_TOP=`pwd`
export JACOBIN_TESTDATA=$JACOBIN_TOP/testdata
cd src
export JACOBIN_EXE=`pwd`/jacobin
go test -v -timeout 3m ./...
windows-build-and-test:
strategy:
matrix:
os: [windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@main
- name: Set up Go
uses: actions/setup-go@main
with:
go-version: '1.21.x'
cache: true
cache-dependency-path: "**/go.sum"
- name: Setup JDK
uses: actions/setup-java@main
with:
distribution: 'oracle'
java-version: '21'
- name: Build
run: |
cd src
go build -o . -v ./...
echo %CD%
dir
./jacobin -h
- name: Test
run: |
$Env:JACOBIN_TOP = $PWD
$Env:JACOBIN_TOP
$Env:JACOBIN_TESTDATA = $Env:JACOBIN_TOP
$Env:JACOBIN_TESTDATA += '\testdata'
$Env:JACOBIN_TESTDATA
cd src
$Env:JACOBIN_EXE = $Env:JACOBIN_TOP
$Env:JACOBIN_EXE += '\src\jacobin.exe'
$Env:JACOBIN_EXE
go mod tidy
go test -v -timeout 3m ./...