forked from JustAMan/JavascriptSubtitlesOctopus
-
Notifications
You must be signed in to change notification settings - Fork 10
40 lines (33 loc) · 967 Bytes
/
emscripten.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
name: Emscripten
on:
push:
branches: [master, ci]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
all_but_latest: true
- name: Checkout Base Repo
uses: actions/[email protected]
- name: Checkout Submodules
run: |
git submodule sync
git submodule update --init --recursive --force
- name: Build Docker Image
run: |
docker build -t libass/jso .
- name: Build Binaries
run: |
docker run --rm --env LC_ALL=C.UTF-8 -v "${PWD}":/code libass/jso:latest
- name: Upload Nightly Build
uses: actions/[email protected]
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/master'
with:
name: js
path: dist/js