Skip to content

tests.json: io/util -> io/ioutil fix incorrect name of test #1758

tests.json: io/util -> io/ioutil fix incorrect name of test

tests.json: io/util -> io/ioutil fix incorrect name of test #1758

Workflow file for this run

# DO NOT EDIT. Generated from scripts/github-action
name: build
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
setup:
timeout-minutes: 15
strategy:
fail-fast: false
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: update apt
run: sudo apt-get update
- name: setup c++
run: sudo apt install g++-multilib
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Set source
run: npx haxelib dev go2hx .
# Clean std
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: Clean std
run: npx haxe --run Run clean
- name: Build go2hx compiler
run: npx haxe --run Run build
- name: Create vendor
run: go mod vendor
# compile std
- name: Run std automatic compile
run: npx haxe extra/scripts/std.hxml -D runnerCount=${{ env.CORES }}
#- name: Create hxb
# run: npx haxelib run go2hx hxb .
# cache
- name: cache setup of std and hxb
id: cache-setup
uses: actions/cache/save@v4
env:
cache-name: cache-setup
if: always()
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
goto:
timeout-minutes: 15
strategy:
fail-fast: false
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: echo "VERSION=$(cat .gorc)" >> $GITHUB_ENV
- run: git clone https://github.com/go2hx/tools --depth=1
- name: Create vendor
run: go mod vendor
- run: go run . -goto -systemgo
interop:
timeout-minutes: 15
needs: setup
strategy:
fail-fast: false
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: cedx/setup-hashlink@v6.2.0
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Set source
run: haxelib dev go2hx .
- name: Clean std
run: npx haxe --run Run clean
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: Build interop test
run: haxelib run go2hx ./tests/interop --nolibwrap
- name: Test interop
run: haxe tests/interop.hxml
- name: Run interop
run: hl interop.hl
pointer:
timeout-minutes: 15
strategy:
fail-fast: false
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: echo "VERSION=$(cat .gorc)" >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: '${{env.VERSION}}' # The Go version to download (if necessary) and use.
- run: git clone https://github.com/go2hx/tools --depth=1
- name: Create vendor
run: go mod vendor
- run: go run . -pointer -systemgo
create-test-lists:
timeout-minutes: 15
needs: []
strategy:
fail-fast: false
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- run: echo "VERSION=$(cat .gorc)" >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: '${{env.VERSION}}' # The Go version to download (if necessary) and use.
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
- run: git clone https://github.com/go2hx/tools --depth=1
- name: clone yaegi
run: git clone https://github.com/traefik/yaegi -b v0.16.1 --depth=1 ./tests/yaegi
- name: clone go
run: git clone https://github.com/golang/go -b go${{ env.VERSION }} --depth=1 ./tests/go
- name: Sort tests
run: go run ./extra/scripts/sortTests ci
- name: Create test lists
run: haxe tests/tests.hxml -D ci -D listAll
- uses: EndBug/add-and-commit@v9
with:
message: create test lists
pull: --rebase --autostash
add: ./tests
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
test-os:
timeout-minutes: 15
needs: [setup]
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: krdlab/setup-haxe@v1
with:
haxe-version: latest # Install 'haxe_latest.tar.gz' from https://build.haxe.org/builds/haxe/linux64/
- run: haxe -version
# go2hx setup
- name: Install hxcpp
run: haxelib git hxcpp https://github.com/haxefoundation/hxcpp
- name: Setup hxcpp
run: haxe extra/scripts/setup_hxcpp.hxml
- name: Build go2hx compiler
run: haxe --run Run build
- name: Set source
run: haxelib dev go2hx .
- name: run compiler
run: haxelib run go2hx unicode --test -compiler_cpp
libs-hl:
timeout-minutes: 75
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: cedx/setup-hashlink@v6.2.0
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Clean std
run: npx haxe --run Run clean
- name: Set source
run: npx haxelib dev go2hx .
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: Run lib tests
run: haxe tests/tests.hxml -D libs -D ci -D runnerCount=${{ env.CORES }} -D target=hl #-D hxb
- uses: EndBug/add-and-commit@v9
with:
message: libs tests update hl
add: ./tests
pull: --rebase --autostash
continue-on-error: true
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
libs-interp:
timeout-minutes: 75
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Clean std
run: npx haxe --run Run clean
- name: Set source
run: npx haxelib dev go2hx .
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: Run lib tests
run: haxe tests/tests.hxml -D libs -D ci -D runnerCount=${{ env.CORES }} -D target=interp #-D hxb
- uses: EndBug/add-and-commit@v9
with:
message: libs tests update interp
add: ./tests
pull: --rebase --autostash
continue-on-error: true
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
go-easy-hl:
timeout-minutes: 75
needs: setup
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: cleanup
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- run: echo "VERSION=$(cat .gorc)" >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: '${{env.VERSION}}' # The Go version to download (if necessary) and use.
- uses: cedx/setup-hashlink@v6.2.0
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
# Clean std
- name: Clean std2hx
run: npx haxe --run Run clean
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
# compile std
- name: Build go2hx compiler
run: npx haxe --run Run build
- name: Set source
run: haxelib dev go2hx .
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: clone go
run: git clone https://github.com/golang/go -b go${{env.VERSION}} --depth=1 ./tests/go
- name: Sort tests
run: go run ./extra/scripts/sortTests ci
# run go easy tests
- name: Run go easy tests
run: haxe tests/tests.hxml -D go -D ci -D mode=easy -D runnerCount=${{ env.CORES }} -D nologs -D target=hl #-D hxb
# add go_easy.json regression
- uses: EndBug/add-and-commit@v9
with:
message: go easy tests update hl
add: ./tests
pull: --rebase --autostash
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
continue-on-error: true
go-easy-interp:
timeout-minutes: 75
needs: setup
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: cleanup
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- run: echo "VERSION=$(cat .gorc)" >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: '${{env.VERSION}}' # The Go version to download (if necessary) and use.
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
# Clean std
- name: Clean std2hx
run: npx haxe --run Run clean
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
# compile std
- name: Build go2hx compiler
run: npx haxe --run Run build
- name: Set source
run: haxelib dev go2hx .
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: clone go
run: git clone https://github.com/golang/go -b go${{env.VERSION}} --depth=1 ./tests/go
- name: Sort tests
run: go run ./extra/scripts/sortTests ci
# run go easy tests
- name: Run go easy tests
run: haxe tests/tests.hxml -D go -D ci -D mode=easy -D runnerCount=${{ env.CORES }} -D nologs -D target=interp #-D hxb
# add go_easy.json regression
- uses: EndBug/add-and-commit@v9
with:
message: go easy tests update interp
add: ./tests
pull: --rebase --autostash
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
continue-on-error: true
yaegi-easy-hl:
timeout-minutes: 75
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: cedx/setup-hashlink@v6.2.0
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Clean std
run: npx haxe --run Run clean
- name: Set source
run: npx haxelib dev go2hx .
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
# run yaegi easy tests
- name: clone yaegi
run: git clone https://github.com/traefik/yaegi -b v0.16.1 --depth=1 ./tests/yaegi
- name: Sort tests
run: go run ./extra/scripts/sortTests ci
- name: Run yaegi easy tests
run: haxe tests/tests.hxml -D yaegi -D ci -D mode=easy -D runnerCount=${{ env.CORES }} -D target=hl #-D hxb
# add yaegi_easy.json regression
- uses: EndBug/add-and-commit@v9
with:
message: yaegi easy tests update hl
add: ./tests
pull: --rebase --autostash
continue-on-error: true
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
yaegi-easy-interp:
timeout-minutes: 75
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Clean std
run: npx haxe --run Run clean
- name: Set source
run: npx haxelib dev go2hx .
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
# run yaegi easy tests
- name: clone yaegi
run: git clone https://github.com/traefik/yaegi -b v0.16.1 --depth=1 ./tests/yaegi
- name: Sort tests
run: go run ./extra/scripts/sortTests ci
- name: Run yaegi easy tests
run: haxe tests/tests.hxml -D yaegi -D ci -D mode=easy -D runnerCount=${{ env.CORES }} -D target=interp #-D hxb
# add yaegi_easy.json regression
- uses: EndBug/add-and-commit@v9
with:
message: yaegi easy tests update interp
add: ./tests
pull: --rebase --autostash
continue-on-error: true
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
go-medium-hl:
timeout-minutes: 75
needs: setup
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: cleanup
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- run: echo "VERSION=$(cat .gorc)" >> $GITHUB_ENV
- uses: cedx/setup-hashlink@v6.2.0
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
# Clean std
- name: Clean std2hx
run: npx haxe --run Run clean
- name: Set source
run: haxelib dev go2hx .
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: Build go2hx compiler
run: npx haxe --run Run build
- name: clone go
run: git clone https://github.com/golang/go -b go${{env.VERSION}} --depth=1 ./tests/go
- name: Sort tests
run: haxelib run go2hx go run ./extra/scripts/sortTests ci
# run go medium tests
- name: Run go medium tests
run: haxe tests/tests.hxml -D go -D ci -D mode=medium -D runnerCount=${{ env.CORES }} -D nologs -D target=hl #-D hxb
# add go_medium.json regression
- uses: EndBug/add-and-commit@v9
with:
message: go medium tests update hl
add: ./tests
pull: --rebase --autostash
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
continue-on-error: true
yaegi-medium-hl:
timeout-minutes: 75
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: cedx/setup-hashlink@v6.2.0
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Clean std
run: npx haxe --run Run clean
- name: Set source
run: npx haxelib dev go2hx .
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: Build go2hx compiler
run: npx haxe --run Run build
# run yaegi medium tests
- name: clone yaegi
run: git clone https://github.com/traefik/yaegi -b v0.16.1 --depth=1 ./tests/yaegi
- name: Sort tests
run: go run ./extra/scripts/sortTests ci
- name: Run yaegi medium tests
run: haxe tests/tests.hxml -D yaegi -D ci -D mode=medium -D runnerCount=${{ env.CORES }} -D target=hl #-D hxb
# add yaegi_medium.json regression
- uses: EndBug/add-and-commit@v9
with:
message: yaegi medium tests update hl
add: ./tests
pull: --rebase --autostash
continue-on-error: true
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
yaegi-medium-interp:
timeout-minutes: 75
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Clean std
run: npx haxe --run Run clean
- name: Set source
run: npx haxelib dev go2hx .
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: Build go2hx compiler
run: npx haxe --run Run build
# run yaegi medium tests
- name: clone yaegi
run: git clone https://github.com/traefik/yaegi -b v0.16.1 --depth=1 ./tests/yaegi
- name: Sort tests
run: go run ./extra/scripts/sortTests ci
- name: Run yaegi medium tests
run: haxe tests/tests.hxml -D yaegi -D ci -D mode=medium -D runnerCount=${{ env.CORES }} -D target=interp #-D hxb
# add yaegi_medium.json regression
- uses: EndBug/add-and-commit@v9
with:
message: yaegi medium tests update interp
add: ./tests
pull: --rebase --autostash
continue-on-error: true
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
build-hl:
timeout-minutes: 75
needs: setup
strategy:
fail-fast: false
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
# non self-host setup
continue-on-error: true
- uses: cedx/setup-hashlink@v6.2.0
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Set source
run: haxelib dev go2hx .
- name: Clean std
run: npx haxe --run Run clean
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- run: ls
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: Run unit
run: haxe tests/tests.hxml -D unit -D ci -D runnerCount=${{ env.CORES }} -D target=hl #-D hxb
- uses: EndBug/add-and-commit@v9
with:
message: go easy tests update hl
add: ./tests
pull: --rebase --autostash
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
continue-on-error: true
- name: Run std
run: haxe tests/tests.hxml -D std -D ci -D runnerCount=${{ env.CORES }} -D targets=hl #-D hxb
- name: End log
run: cat end.log
- uses: EndBug/add-and-commit@v9
with:
message: build std tests update hl
add: ./tests
pull: --rebase --autostash
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
continue-on-error: true
build-interp:
timeout-minutes: 75
needs: setup
strategy:
fail-fast: false
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# Get the cores
- name: Get number of cores (Ubuntu)
if: startsWith(runner.os, 'Linux')
run: echo "CORES=$(nproc --all)" >> $GITHUB_ENV
- name: Get number of cores (macOS)
if: startsWith(runner.os, 'macOS')
run: echo "CORES=$(sysctl -n hw.logicalcpu)" >> $GITHUB_ENV
# non self-host setup
continue-on-error: true
- name: Install lix
run: npm i lix -g
- name: Run lix
run: npx lix download
# go2hx setup
- name: Set source
run: haxelib dev go2hx .
- name: Clean std
run: npx haxe --run Run clean
- uses: actions/cache/restore@v4
id: setup-cache
with:
path: |
TypeInfoData_go2hx_hxb.hx
./_internal/*
./go2hx.*.zip
export
golibs
key: ${{ github.sha }}-build-${{ env.cache-name }}
- run: ls
- name: Setup hxcpp
run: haxe -cp extra/scripts --run SetupHxcpp
- name: Run unit
run: haxe tests/tests.hxml -D unit -D ci -D runnerCount=${{ env.CORES }} -D target=interp #-D hxb
- uses: EndBug/add-and-commit@v9
with:
message: go easy tests update interp
add: ./tests
pull: --rebase --autostash
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
continue-on-error: true
- name: Run std
run: haxe tests/tests.hxml -D std -D ci -D runnerCount=${{ env.CORES }} -D targets=interp #-D hxb
- name: End log
run: cat end.log
- uses: EndBug/add-and-commit@v9
with:
message: build std tests update interp
add: ./tests
pull: --rebase --autostash
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
continue-on-error: true