File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 42
42
DISPATCH_TYPE : ${{ github.event.inputs.buildtype }}
43
43
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
44
SSH_KEY : ${{ secrets.SSH_KEY }}
45
+ BUILD_TYPE : ${{ github.event.inputs.buildtype }}
45
46
46
47
jobs :
47
48
build :
51
52
- uses : actions/checkout@v3
52
53
# Customizes the Emscripten docker container via the Dockerfile in this repo
53
54
- name : Build the Docker image
54
- run : docker build -t "docker-emscripten-libzim:v3" ./docker
55
+ run : |
56
+ if [[ $BUILD_TYPE =~ 'source' ]]; then
57
+ BUILD_VERSION='3.1.12'
58
+ else
59
+ BUILD_VERSION='3.1.41'
60
+ fi
61
+ docker build -t "docker-emscripten-libzim:v3" ./docker --build-arg VERSION=$BUILD_VERSION
55
62
# If we're building release version
56
63
- name : Build release from libzim binaries
57
64
if : github.event_name == 'pull_request' || github.event_name == 'push' || github.event.inputs.buildtype == 'release'
Original file line number Diff line number Diff line change 1
1
# Docker image suitable to build libzim & kiwixlib with emscripten
2
- FROM emscripten/emsdk:3.1.41
2
+ ARG VERSION
3
+ FROM emscripten/emsdk:${VERSION}
3
4
4
5
# Install build tools
5
6
RUN apt-get update && apt-get install -y --no-install-recommends wget ninja-build pkg-config python3 autopoint libtool autoconf patch g++ locales curl git \
You can’t perform that action at this time.
0 commit comments