Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 4147dbf

Browse files
authored
fix: ubuntu-18/20 support with libvpx (#10)
1 parent 13ad07c commit 4147dbf

File tree

3 files changed

+26
-3
lines changed

3 files changed

+26
-3
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,17 @@ on:
55
pull_request:
66
branches: [ master ]
77
jobs:
8-
build:
8+
test_ubuntu_18:
99
runs-on: ubuntu-18.04
1010
steps:
1111
- uses: actions/checkout@v2
1212
- run: bash test/run.sh
13+
env:
14+
STACK: heroku-18
15+
test_ubuntu_20:
16+
runs-on: ubuntu-20.04
17+
steps:
18+
- uses: actions/checkout@v2
19+
- run: bash test/run.sh
20+
env:
21+
STACK: heroku-20

bin/compile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,26 @@ libgdk-pixbuf2.0-0
5858
libcairo-gobject2
5959
# needed for CR recordings and FF video playback
6060
ffmpeg
61-
libvpx5
6261
libpulse0
6362
libusb-1.0-0
6463
EOF
6564
fi
6665

66+
case "$STACK" in
67+
"heroku-18")
68+
cat << EOF >>$build_tmpdir/Aptfile
69+
libvpx5
70+
EOF
71+
;;
72+
"heroku-20")
73+
cat << EOF >>$build_tmpdir/Aptfile
74+
libvpx6
75+
EOF
76+
;;
77+
*)
78+
error "STACK must be 'heroku-18' or 'heroku-20'"
79+
esac
80+
6781
cat << EOF >>$build_tmpdir/Aptfile
6882
# (Optional) XVFB if there's a need to run browsers in headful mode
6983
xvfb

test/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ main() {
1515
${bp_dir}/bin/compile ${compile_dir} ${2:-$(mktmpdir)} $env_dir
1616
}
1717

18-
main
18+
main

0 commit comments

Comments
 (0)