forked from HaxeFoundation/code-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 20
52 lines (44 loc) · 1.21 KB
/
main.yml
File metadata and controls
52 lines (44 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and Test
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
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
- name: Install Node.js and npm
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install
# at some point all npm needs to be in package.json
run: |
npm install
npm install -g less@2.7
npm install -g less-plugin-clean-css@1.5
haxelib install CodeCookBook-neko.hxml --always --quiet
haxelib install highlighting.hxml --always --quiet
haxelib list
- name: Run build script
run: haxe build.hxml
- name: Upload build artifacts (optional)
uses: actions/upload-artifact@v4
with:
name: build-output
path: |
output/
output/
if-no-files-found: ignore