Remove sudo usage from `install_ubuntu_deps.sh` (#135)

* Remove sudo usage from `install_ubuntu_deps.sh`

`sudo` is not always available in Docker containers, so we should assume users will run the script itself with `sudo` when needed.

* Update swift.yml
This commit is contained in:
Max Desiatov 2020-10-21 08:49:16 +01:00 committed by GitHub
parent 08956baf1d
commit 19883a503c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ jobs:
- name: Build on Ubuntu 18.04 with Swift 5.3
run: |
swift build
./install_ubuntu_deps.sh
sudo ./install_ubuntu_deps.sh
curl https://get.wasmer.io -sSfL | sh
source /home/runner/.wasmer/wasmer.sh
cd TestApp && ../.build/debug/carton test

View File

@ -4,8 +4,8 @@ set -ex
curl -L -v -o wabt.tar.gz https://github.com/WebAssembly/wabt/releases/download/1.0.19/wabt-1.0.19-ubuntu.tar.gz
tar xzvf wabt.tar.gz
sudo cp wabt-1.0.19/bin/* /usr/local/bin
cp wabt-1.0.19/bin/* /usr/local/bin
curl -L -v -o binaryen.tar.gz https://github.com/WebAssembly/binaryen/releases/download/version_97/binaryen-version_97-x86_64-linux.tar.gz
tar xzvf binaryen.tar.gz
sudo cp binaryen-version_97/bin/* /usr/local/bin
cp binaryen-version_97/bin/* /usr/local/bin