Skip to content

Commit

Permalink
Switch to GitHub Actions and lix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gama11 committed Mar 30, 2020
1 parent d8ea261 commit 7563152
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 23 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npx haxe build.hxml
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/*
node_modules
bin
4 changes: 4 additions & 0 deletions .haxerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"version": "4.0.5",
"resolveLibs": "scoped"
}
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

13 changes: 3 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# HXCPP Debugger

[![Build Status](https://travis-ci.org/vshaxe/hxcpp-debugger.svg?branch=master)](https://travis-ci.org/vshaxe/hxcpp-debugger) [![Version](https://vsmarketplacebadge.apphb.com/version-short/vshaxe.hxcpp-debugger.svg)](https://marketplace.visualstudio.com/items?itemName=vshaxe.hxcpp-debugger) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/vshaxe.hxcpp-debugger.svg)](https://marketplace.visualstudio.com/items?itemName=vshaxe.hxcpp-debugger)
[![CI](https://img.shields.io/github/workflow/status/vshaxe/hxcpp-debugger/CI.svg?logo=github)](https://github.com/vshaxe/hxcpp-debugger/actions?query=workflow%3ACI) [![Version](https://vsmarketplacebadge.apphb.com/version-short/vshaxe.hxcpp-debugger.svg)](https://marketplace.visualstudio.com/items?itemName=vshaxe.hxcpp-debugger) [![Installs](https://vsmarketplacebadge.apphb.com/installs-short/vshaxe.hxcpp-debugger.svg)](https://marketplace.visualstudio.com/items?itemName=vshaxe.hxcpp-debugger)

This VSCode extension allows you to debug [HXCPP](https://haxe.org/manual/target-cpp-getting-started.html) applications.

Expand Down Expand Up @@ -46,15 +46,8 @@ Replace `/bin/application.exe` with the path to your executable file.
1. Navigate to the extensions folder (`C:\Users\<username>\.vscode\extensions` on Windows, `~/.vscode/extensions` otherwise)
2. Clone this repo: `git clone https://github.com/vshaxe/hxcpp-debugger`
3. Change current directory to the cloned one: `cd hxcpp-debugger`.
4. Install dependencies:

```hxml
npm install
haxelib install vscode
haxelib install vscode-debugadapter
```
5. Do `haxe build.hxml`
4. Install dependencies `npm install`
5. Do `npx haxe build.hxml`

## Usage with lix
https://github.com/tbrosman/vshaxe-hxcpp-debugger-and-lix
6 changes: 6 additions & 0 deletions haxe_libraries/hxnodejs.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# @install: lix --silent download "haxelib:/hxnodejs#12.0.0" into hxnodejs/12.0.0/haxelib
-cp ${HAXE_LIBCACHE}/hxnodejs/12.0.0/haxelib/src
-D hxnodejs=12.0.0
--macro allowPackage('sys')
# should behave like other target defines and not be defined in macro context
--macro define('nodejs')
4 changes: 4 additions & 0 deletions haxe_libraries/vscode-debugadapter.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# @install: lix --silent download "haxelib:/vscode-debugadapter#1.39.0" into vscode-debugadapter/1.39.0/haxelib
-lib hxnodejs
-cp ${HAXE_LIBCACHE}/vscode-debugadapter/1.39.0/haxelib/src
-D vscode-debugadapter=1.39.0
4 changes: 4 additions & 0 deletions haxe_libraries/vscode.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# @install: lix --silent download "haxelib:/vscode#1.43.0" into vscode/1.43.0/haxelib
-lib hxnodejs
-cp ${HAXE_LIBCACHE}/vscode/1.43.0/haxelib/src
-D vscode=1.43.0
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@
"vscode-debugprotocol": "1.36.0",
"vscode-debugadapter": "1.36.0"
},
"devDependencies": {
"lix": "^15.8.9"
},
"scripts": {
"vscode:prepublish": "haxe build.hxml"
"vscode:prepublish": "haxe build.hxml",
"postinstall": "lix download"
},
"main": "bin/extension.js",
"activationEvents": [
Expand Down

0 comments on commit 7563152

Please sign in to comment.