Skip to content

1.4.27

1.4.27 #290

Workflow file for this run

name: CI
on:
push:
# This should disable running the workflow on tags
branches:
- "**"
pull_request:
workflow_dispatch:
# https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.3.6
- name: Print haxe version
run: haxe -version
- name: Install haxelib dependencies
run: |
haxelib git format https://github.com/HaxeFoundation/format.git
haxelib git hscript https://github.com/HaxeFoundation/hscript.git
haxelib install vshaxe
haxelib install vscode
haxelib install vscode-debugadapter
- name: Build extension
run: make build
- name: Build standalone adapter.js
run: haxe build.hxml
- name: Build CLI hl
run: |
cd debugger
haxe debugger.hxml
cd ..
- uses: actions/setup-node@v4
with:
node-version: '22.x'
- name: Print npm and node version
run: |
npm --version
node --version
- name: Install global vsce package
run: |
npm install vsce -g
npm list vsce -g
- name: Package nightly build
run: |
export PKG_VER=$(npm pkg get version | xargs)
export SHORT_HASH=$(git rev-parse --short HEAD)
npm pkg set 'version'=${PKG_VER}-dev-${SHORT_HASH}
# Prevent build node-gyp
rm -f hldebug-wrapper/binding.gyp
npm install
# Double install workaround for node-addon-api invalid error (instead of deduped), see https://github.com/npm/cli/issues/4859
npm install
npm list node-addon-api
make package
cp haxe-hl-${PKG_VER}-dev-${SHORT_HASH}.vsix haxe-hl-dev.vsix
- name: Upload extension artifact
uses: actions/upload-artifact@v4
with:
name: vscode_extension
path: haxe-hl-dev.vsix
build_and_test_nightly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: krdlab/setup-haxe@v1
with:
haxe-version: latest
- name: Print haxe version
run: haxe -version
- name: Install haxelib dependencies
run: |
haxelib git format https://github.com/HaxeFoundation/format.git
haxelib git hscript https://github.com/HaxeFoundation/hscript.git
haxelib install vshaxe
haxelib install vscode
haxelib install vscode-debugadapter
- name: Build extension
run: make build
- name: Build standalone adapter.js
run: haxe build.hxml
- name: Build CLI hl
run: |
cd debugger
haxe debugger.hxml
cd ..
- name: Install hl
run: |
git clone https://github.com/HaxeFoundation/hashlink.git hashlink
sudo apt-get update
sudo apt-get install -qqy libpng-dev libturbojpeg-dev libvorbis-dev libopenal-dev libsdl2-dev libglu1-mesa-dev libmbedtls-dev libuv1-dev libsqlite3-dev
cd hashlink
make
sudo make install
hl --version
cd ..
- name: Run tests
run: |
cd tests
haxe RunCi.hxml
cd ..