ci: Get wasm-opt directly from GitHub using sigoden/install-binary@v1
... instead of from conda-forge using miniconda. And using wget+tar in the extension builder Dockerfile.
This commit is contained in:
parent
e93cf15b7c
commit
a66ba15051
|
@ -315,16 +315,14 @@ jobs:
|
|||
- name: Install wasm-bindgen
|
||||
run: cargo install wasm-bindgen-cli --version 0.2.92
|
||||
|
||||
- name: Setup conda
|
||||
uses: conda-incubator/setup-miniconda@v3
|
||||
# Keep the version number in sync in all workflows,
|
||||
# and in the extension builder Dockerfile!
|
||||
- name: Install wasm-opt
|
||||
uses: sigoden/install-binary@v1
|
||||
with:
|
||||
activate-environment: binaryen
|
||||
|
||||
# conda is available only with "shell: bash -l {0}".
|
||||
# See https://github.com/marketplace/actions/setup-miniconda.
|
||||
- name: Install binaryen
|
||||
shell: bash -l {0}
|
||||
run: conda install -c conda-forge binaryen
|
||||
repo: WebAssembly/binaryen
|
||||
tag: version_118
|
||||
name: wasm-opt
|
||||
|
||||
- name: Install node packages
|
||||
working-directory: web
|
||||
|
|
|
@ -31,14 +31,14 @@ jobs:
|
|||
- name: Install wasm-bindgen
|
||||
run: cargo install wasm-bindgen-cli --version 0.2.92
|
||||
|
||||
- name: Setup conda
|
||||
uses: conda-incubator/setup-miniconda@v3
|
||||
# Keep the version number in sync in all workflows,
|
||||
# and in the extension builder Dockerfile!
|
||||
- name: Install wasm-opt
|
||||
uses: sigoden/install-binary@v1
|
||||
with:
|
||||
activate-environment: binaryen
|
||||
|
||||
- name: Install binaryen
|
||||
shell: bash -l {0}
|
||||
run: conda install -c conda-forge binaryen
|
||||
repo: WebAssembly/binaryen
|
||||
tag: version_118
|
||||
name: wasm-opt
|
||||
|
||||
- name: Install fclones
|
||||
run: cargo install fclones
|
||||
|
|
|
@ -63,16 +63,14 @@ jobs:
|
|||
- name: Install wasm-bindgen
|
||||
run: cargo install wasm-bindgen-cli --version 0.2.92
|
||||
|
||||
- name: Setup conda
|
||||
uses: conda-incubator/setup-miniconda@v3
|
||||
# Keep the version number in sync in all workflows,
|
||||
# and in the extension builder Dockerfile!
|
||||
- name: Install wasm-opt
|
||||
uses: sigoden/install-binary@v1
|
||||
with:
|
||||
activate-environment: binaryen
|
||||
|
||||
# conda is available only with "shell: bash -l {0}".
|
||||
# See https://github.com/marketplace/actions/setup-miniconda.
|
||||
- name: Install binaryen
|
||||
shell: bash -l {0}
|
||||
run: conda install -c conda-forge binaryen
|
||||
repo: WebAssembly/binaryen
|
||||
tag: version_118
|
||||
name: wasm-opt
|
||||
|
||||
- name: Build
|
||||
env:
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
# docker cp $(docker create ruffle-web-docker:latest):/ruffle/web/packages web/docker/docker_builds/packages
|
||||
FROM node:20
|
||||
|
||||
# Getting Miniconda from their website:
|
||||
RUN wget 'https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh'
|
||||
RUN bash ./Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda
|
||||
ENV PATH="/miniconda/bin:$PATH"
|
||||
RUN conda install -y -c conda-forge binaryen
|
||||
# Installing wasm-opt from GitHub:
|
||||
# Keep the version number in sync with the ones in the Actions workflows!
|
||||
RUN wget --progress=:giga https://github.com/WebAssembly/binaryen/releases/download/version_118/binaryen-version_118-x86_64-linux.tar.gz
|
||||
RUN tar xzf binaryen-version_118-x86_64-linux.tar.gz binaryen-version_118/bin/wasm-opt
|
||||
RUN mv binaryen-version_118/bin/wasm-opt /usr/local/bin
|
||||
|
||||
# Installing Rust using rustup:
|
||||
RUN wget 'https://sh.rustup.rs' --quiet -O- | sh -s -- -y --profile minimal --target wasm32-unknown-unknown
|
||||
|
|
Loading…
Reference in New Issue