File tree Expand file tree Collapse file tree 5 files changed +13
-17
lines changed Expand file tree Collapse file tree 5 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : Publish Docker CI image
2
2
on :
3
3
workflow_dispatch : {}
4
+ pull_request :
5
+ branches : [main]
4
6
push :
5
7
branches : [main]
6
8
39
41
platforms : linux/amd64,linux/arm64
40
42
context : .
41
43
file : ${{ matrix.dockerfile }}
42
- push : true
44
+ push : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
43
45
tags : ${{ join(matrix.tags, ',') }}
Original file line number Diff line number Diff line change 1
- install_wasmer () {
2
- export WASMER_DIR =" ${WASMER_DIR :-/ opt / wasmer } "
3
- curl https://get.wasmer.io -sSfL | sh -s " 2.3.0 "
4
- ln -sf " $WASMER_DIR /bin/wasmer " " $PREFIX /bin/wasmer "
1
+ install_wasmtime () {
2
+ export WASMTIME_HOME =" ${WASMTIME_HOME :- $PREFIX / wasmtime } "
3
+ curl https://wasmtime.dev/install.sh -sSf | bash /dev/stdin --version v10.0.1
4
+ ln -sf " $WASMTIME_HOME /bin/wasmtime " " $PREFIX /bin/wasmtime "
5
5
}
6
6
7
7
install_cmake () {
Original file line number Diff line number Diff line change @@ -35,11 +35,9 @@ RUN apt -y update && apt -y install \
35
35
36
36
RUN apt-get install -y \
37
37
# FIXME(katei): curl cli dependency is required for downloading build-sdk at build-time
38
- curl \
39
- # FIXME(katei): libtinfo.so.5 is required for old wasmer. See https://github.com/wasmerio/wasmer/issues/1651
40
- libtinfo5
38
+ curl
41
39
COPY ./swift-ci/main/install-extra-packages.sh /tmp/install-extra-packages.sh
42
- RUN /tmp/install-extra-packages.sh wasmer cmake sccache && rm /tmp/install-extra-packages.sh
40
+ RUN /tmp/install-extra-packages.sh wasmtime cmake sccache && rm /tmp/install-extra-packages.sh
43
41
44
42
USER build-user
45
43
Original file line number Diff line number Diff line change @@ -33,12 +33,10 @@ RUN apt-get -y update && apt-get -y install \
33
33
uuid-dev
34
34
RUN apt-get install -y \
35
35
# FIXME(katei): curl cli dependency is required for downloading build-sdk at build-time
36
- curl \
37
- # FIXME(katei): libtinfo.so.5 is required for old wasmer. See https://github.com/wasmerio/wasmer/issues/1651
38
- libtinfo5
36
+ curl
39
37
40
38
COPY ./swift-ci/main/install-extra-packages.sh /tmp/install-extra-packages.sh
41
- RUN /tmp/install-extra-packages.sh wasmer cmake sccache && rm /tmp/install-extra-packages.sh
39
+ RUN /tmp/install-extra-packages.sh wasmtime cmake sccache && rm /tmp/install-extra-packages.sh
42
40
43
41
USER build-user
44
42
Original file line number Diff line number Diff line change @@ -34,12 +34,10 @@ RUN apt-get -y update && apt-get -y install \
34
34
35
35
RUN apt-get install -y \
36
36
# FIXME(katei): curl cli dependency is required for downloading build-sdk at build-time
37
- curl \
38
- # FIXME(katei): libtinfo.so.5 is required for old wasmer. See https://github.com/wasmerio/wasmer/issues/1651
39
- libtinfo5
37
+ curl
40
38
41
39
COPY ./swift-ci/main/install-extra-packages.sh /tmp/install-extra-packages.sh
42
- RUN /tmp/install-extra-packages.sh wasmer cmake sccache && rm /tmp/install-extra-packages.sh
40
+ RUN /tmp/install-extra-packages.sh wasmtime cmake sccache && rm /tmp/install-extra-packages.sh
43
41
44
42
USER build-user
45
43
You can’t perform that action at this time.
0 commit comments