Skip to content

Commit

Permalink
[ci] Add github actions build job (#179)
Browse files Browse the repository at this point in the history
* [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
  • Loading branch information
tobil4sk authored Jul 31, 2024
1 parent 7b281d4 commit 9a34fd4
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 2 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
# we need full git history for article dates
fetch-depth: 0

- name: Setup Haxe
uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.3.5

# we are using this version in order to build vscode-textmate
- name: Setup Node
uses: actions/setup-node@v1

- name: Install
# at some point all npm needs to be in package.json
run: |
npm install
npm install -g [email protected]
npm install -g [email protected]
haxelib install CodeCookBook-neko.hxml --always --quiet
haxelib install highlighting.hxml --always --quiet
haxelib list
- name: Generate website
run: |
haxe CodeCookBook-neko.hxml
haxe highlighting.hxml
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./output
2 changes: 1 addition & 1 deletion CodeCookBook.hxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
--next

-lib markdown
-lib hxtemplo
-lib hxtemplo:git:https://github.com/Simn/hxtemplo.git
-lib hxparse
-cp src
-main Main
Expand Down
2 changes: 1 addition & 1 deletion highlighting.hxml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-cp src
-main Highlighting
-lib hxnodejs
-lib highlighter
-lib highlighter:0.6.1
-js bin/patch.js
-cmd node bin/patch.js

0 comments on commit 9a34fd4

Please sign in to comment.