cxgo: Fix composite literals cast to primitives. Fixes #81. #196
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: 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 |