Skip to content

cxgo: Fix untyped bool->float conversion. Fixes #76. #194

cxgo: Fix untyped bool->float conversion. Fixes #76.

cxgo: Fix untyped bool->float conversion. Fixes #76. #194

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-22.04
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: actions/checkout
uses: actions/checkout@v4
- name: actions/cache
uses: actions/cache@v4
with:
path: ~/go
key: ${{ env.GO_CACHE_PREFIX }}${{ hashFiles('go.mod') }}
restore-keys: ${{ env.GO_CACHE_PREFIX }}
- name: script
run: |
set -x
go test -v ./...
go build ./cmd/cxgo
test-tcc:
name: TCC Tests
runs-on: ubuntu-22.04
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: actions/checkout
uses: actions/checkout@v4
- name: actions/cache
uses: actions/cache@v4
with:
path: ~/go
key: ${{ env.GO_CACHE_PREFIX }}${{ hashFiles('go.mod') }}
restore-keys: ${{ env.GO_CACHE_PREFIX }}
- name: actions/cache
uses: actions/cache@v4
with:
path: ./.testdata/tcc
key: tcc_${{ hashFiles('tcc_test.go') }}
restore-keys: tcc_${{ hashFiles('tcc_test.go') }}
- name: script
run: |
set -x
CXGO_RUN_TESTS_TCC=true go test -v -run=TestTCCExecute
# test-gcc:
# name: GCC Tests
# runs-on: ubuntu-22.04
# steps:
# - name: Install Go
# uses: actions/setup-go@v5
# with:
# go-version: '1.22.x'
# - name: actions/checkout
# uses: actions/checkout@v4
# - name: actions/cache
# uses: actions/cache@v4
# with:
# path: ~/go
# key: ${{ env.GO_CACHE_PREFIX }}${{ hashFiles('go.mod') }}
# restore-keys: ${{ env.GO_CACHE_PREFIX }}
# - name: actions/cache
# uses: actions/cache@v4
# with:
# path: ./.testdata/gcc
# key: gcc_${{ hashFiles('gcc_test.go') }}
# restore-keys: gcc_${{ hashFiles('gcc_test.go') }}
# - name: script
# run: |
# set -x
# CXGO_RUN_TESTS_GCC=true go test -timeout=15m -v -run=TestGCCExecute