Commit 17f26b9a authored by Jerome Wu's avatar Jerome Wu

Update workflow

parent 829a1658
name: Pt.1 Build with GCC name: Pt.2 Build with Emscripten
# Controls when the action will run. Triggers the workflow on push or pull request # Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch # events but only for the master branch
on: on:
push: push:
branches: [ n4.3.1-p1 ] branches: [ n4.3.1-p2 ]
pull_request: pull_request:
branches: [ n4.3.1-p1 ] branches: [ n4.3.1-p2 ]
env:
EM_VERSION: 1.39.18
EM_CACHE_FOLDER: 'emsdk-cache'
jobs: jobs:
linux-build_with_docker: linux-build_with_docker:
...@@ -16,25 +20,32 @@ jobs: ...@@ -16,25 +20,32 @@ jobs:
shell: bash shell: bash
run: | run: |
bash build-with-docker.sh bash build-with-docker.sh
- uses: actions/upload-artifact@master # - uses: actions/upload-artifact@master
with: # with:
name: ffmpeg-linux # name: ffmpeg-linux
path: ffmpeg # path: ffmpeg
macos-build: macos-build:
runs-on: macos-latest runs-on: macos-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Setup cache
id: cache-system-libraries
uses: actions/cache@v2
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- uses: mymindstorm/setup-emsdk@v6
with:
version: ${{env.EM_VERSION}}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
- name: Build FFMpeg - name: Build FFMpeg
shell: bash shell: bash
run: | run: |
# Make sure to use gcc-8 instead of the default gcc
shopt -s expand_aliases
alias gcc='gcc-8'
bash build.sh bash build.sh
- uses: actions/upload-artifact@master # - uses: actions/upload-artifact@master
with: # with:
name: ffmpeg-macos # name: ffmpeg-macos
path: ffmpeg # path: ffmpeg
# Not working with error messsage: # Not working with error messsage:
# C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\x86_64-w64-mingw32\bin\ar.exe: libavfilter/vsink_null: No such file or directory # C:\ProgramData\Chocolatey\lib\mingw\tools\install\mingw64\x86_64-w64-mingw32\bin\ar.exe: libavfilter/vsink_null: No such file or directory
# windows-build: # windows-build:
......
#!/bin/bash -x #!/bin/bash -x
EM_VERSION=1.39.18-upstream
FLAGS="" FLAGS=""
# Attach TTY only when available, this is for running in Gihub Actions # Attach TTY only when available, this is for running in Gihub Actions
if [ -t 1 ]; then FLAGS="-it"; fi if [ -t 1 ]; then FLAGS="-it"; fi
docker pull gcc:8 docker pull trzeci/emscripten:$EM_VERSION
docker run $FLAGS \ docker run $FLAGS \
-v $PWD:/usr/src \ -v $PWD:/src \
gcc:8 \ trzeci/emscripten:$EM_VERSION \
sh -c 'cd /usr/src && bash ./build.sh' sh -c 'bash ./build.sh'
#!/bin/bash #!/bin/bash
./configure --disable-x86asm emcc -v
make -j
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment