refactor(encode): adds possibility to do only part of the encoding pr… #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push, pull_request] | |
jobs: | |
Test-And-Release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: mymindstorm/setup-emsdk@v11 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- uses: BSFishy/pip-action@v1 | |
with: | |
packages: | | |
meson | |
ninja | |
- name: Overwrite file | |
uses: "DamianReeves/write-file-action@master" | |
with: | |
path: libultrahdr-wasm/em.txt | |
write-mode: overwrite | |
contents: | | |
[binaries] | |
c = 'emcc' | |
cpp = 'em++' | |
ar = 'emar' | |
nm = 'emnm' | |
[host_machine] | |
system = 'emscripten' | |
cpu_family = 'wasm32' | |
cpu = 'wasm32' | |
endian = 'little' | |
- run: | | |
cd libultrahdr-wasm | |
meson setup build --cross-file=em.txt | |
meson compile -C build | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- run: npm ci | |
- run: npm test | |
- run: npm run build | |
- run: npx semantic-release --dry-run | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |