Skip to content

Commit

Permalink
github: Create /usr/local directories
Browse files Browse the repository at this point in the history
  • Loading branch information
remko committed Aug 10, 2024
1 parent 7394af6 commit a7b0c38
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ runs:
- if: runner.os == 'Linux'
run: |
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.33/wabt-1.0.33-ubuntu.tar.gz | tar xvz -C /tmp
sudo mkdir -p /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share
sudo mv /tmp/wabt-1.0.33/bin/* /usr/local/bin
sudo mv /tmp/wabt-1.0.33/include/* /usr/local/include
sudo mv /tmp/wabt-1.0.33/lib/*.a /usr/local/lib
Expand All @@ -19,13 +20,17 @@ runs:
echo "WABT_DATA_DIR=/usr/local/share/wabt" >> $GITHUB_ENV
shell: bash
- if: runner.os == 'macOS'
run: |
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.33/wabt-1.0.33-macos-12.tar.gz | tar xvz -C /tmp
sudo mv /tmp/wabt-1.0.33/bin/* /usr/local/bin
sudo mv /tmp/wabt-1.0.33/include/* /usr/local/include
sudo mv /tmp/wabt-1.0.33/lib/*.a /usr/local/lib
sudo mv /tmp/wabt-1.0.33/share/wabt /usr/local/share
run: brew install wabt
shell: bash
# - if: runner.os == 'macOS'
# run: |
# curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.33/wabt-1.0.33-macos-12.tar.gz | tar xvz -C /tmp
# sudo mkdir -p /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share
# sudo mv /tmp/wabt-1.0.33/bin/* /usr/local/bin
# sudo mv /tmp/wabt-1.0.33/include/* /usr/local/include
# sudo mv /tmp/wabt-1.0.33/lib/*.a /usr/local/lib
# sudo mv /tmp/wabt-1.0.33/share/wabt /usr/local/share
# shell: bash
- if: runner.os == 'Windows'
run: |
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.33/wabt-1.0.33-windows.tar.gz | tar xvz -C /tmp
Expand Down

0 comments on commit a7b0c38

Please sign in to comment.