Skip to content

Commit 9a34fd4

Browse files
authored
[ci] Add github actions build job (#179)
* [ci] Add github actions build job * Specify hxtemplo version in hxml * Use highlighter 0.6.1 for now PR to update to highlighter 0.7.0 is yet to be merged: #176
1 parent 7b281d4 commit 9a34fd4

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

.github/workflows/main.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
with:
11+
submodules: true
12+
# we need full git history for article dates
13+
fetch-depth: 0
14+
15+
- name: Setup Haxe
16+
uses: krdlab/setup-haxe@v1
17+
with:
18+
haxe-version: 4.3.5
19+
20+
# we are using this version in order to build vscode-textmate
21+
- name: Setup Node
22+
uses: actions/setup-node@v1
23+
24+
- name: Install
25+
# at some point all npm needs to be in package.json
26+
run: |
27+
npm install
28+
npm install -g [email protected]
29+
npm install -g [email protected]
30+
haxelib install CodeCookBook-neko.hxml --always --quiet
31+
haxelib install highlighting.hxml --always --quiet
32+
haxelib list
33+
34+
- name: Generate website
35+
run: |
36+
haxe CodeCookBook-neko.hxml
37+
haxe highlighting.hxml
38+
39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v3
41+
with:
42+
path: ./output

CodeCookBook.hxml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--next
55

66
-lib markdown
7-
-lib hxtemplo
7+
-lib hxtemplo:git:https://github.com/Simn/hxtemplo.git
88
-lib hxparse
99
-cp src
1010
-main Main

highlighting.hxml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-cp src
22
-main Highlighting
33
-lib hxnodejs
4-
-lib highlighter
4+
-lib highlighter:0.6.1
55
-js bin/patch.js
66
-cmd node bin/patch.js

0 commit comments

Comments
 (0)