-
Notifications
You must be signed in to change notification settings - Fork 4
73 lines (61 loc) · 1.83 KB
/
build.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: System Dependencies
run: |
sudo sh -c 'echo deb https://www.deb-multimedia.org sid main non-free > /etc/apt/sources.list.d/dm.list'
sudo apt-get update -oAcquire::AllowInsecureRepositories=true
sudo apt-get install --allow-unauthenticated deb-multimedia-keyring
sudo apt-get update
sudo apt-get install -y haxe libstrophe-dev libopus-dev libdatachannel-dev
haxelib setup ~/haxe
- name: Cache haxelib
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-haxelib
with:
path: ~/haxe
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/build.yml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Haxe Dependencies
run: |
haxelib --quiet install datetime
haxelib --quiet install haxe-strings
haxelib --quiet install hsluv
haxelib --quiet install tink_http
haxelib --quiet install sha
haxelib --quiet install thenshim
haxelib --quiet install hxcpp
haxelib --quiet install hxtsdgen
haxelib --quiet install utest
- name: Tests
run: make test
- name: Build
run: make
- name: libsnikket Artifact
uses: actions/upload-artifact@v4
with:
name: libsnikket
path: |
libsnikket.so
cpp/snikket.h
- name: JS Artifact
uses: actions/upload-artifact@v4
with:
name: browser.js
path: |
browser.js
browser.haxe.d.ts
browser.haxe-enums.ts