Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma authored May 21, 2024
1 parent 13b2f30 commit d0d4887
Showing 1 changed file with 35 additions and 1 deletion.
36 changes: 35 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,30 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Dependencies
- 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 node modules
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
Expand All @@ -37,3 +53,21 @@ jobs:

- 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

0 comments on commit d0d4887

Please sign in to comment.