Skip to content

Commit

Permalink
fix wasmer not being found
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Jul 2, 2024
1 parent aeb1b85 commit 433737f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ jobs:
env:
CROSS_BUILD_WASIX: cross-build/wasix
WASMER_PACKAGE: wasmer_package
WASMER_DIR: "/opt/wasmer"
name: 'Publish to Wasmer'
steps:
- uses: actions/checkout@v4
Expand All @@ -327,9 +328,14 @@ jobs:
- name: "List dirs"
run: |
ls
- name: "Install Wasmer"
run: |
mkdir ${{ env.WASMER_DIR }}
curl https://get.wasmer.io -sSfL | sh
- name: "Publish to wasmer.io"
run: |
./Tools/wasm/wasmer-publish.sh publish "${{ secrets.WASMER_CIUSER_PROD_TOKEN }}" amin "3.14-${{ github.sha }}"
PATH="$PATH:${{ env.WASMER_DIR }}/bin" \
./Tools/wasm/wasmer-publish.sh publish "${{ secrets.WASMER_CIUSER_PROD_TOKEN }}" "3.14-${{ github.sha }}"
# test_hypothesis:
# name: "Hypothesis tests on Ubuntu"
Expand Down
10 changes: 2 additions & 8 deletions Tools/wasm/wasmer-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,13 @@ if test -z "$2"; then
fi
TOKEN=$2

if test -z "$3"; then
echo "Owner is not specified"
exit 1
fi
OWNER=$3

if [ "$1" == "push" ]; then
# populate wasmer.toml
populate_wasmer_toml

wasmer package push --registry "wasmer.io" --token $TOKEN $WASMER_PACKAGE
elif [ "$1" == "publish" ]; then
if test -z "$4"; then
if test -z "$3"; then
echo "Version is not specified"
exit 1
fi
Expand All @@ -70,5 +64,5 @@ elif [ "$1" == "publish" ]; then
# populate wasmer.toml
populate_wasmer_toml $VERSION

wasmer package publish --registry "wasmer.io" --token $TOKEN --owner $OWNER $WASMER_PACKAGE
wasmer package publish --registry "wasmer.io" --token $TOKEN --non-interactive $WASMER_PACKAGE
fi

0 comments on commit 433737f

Please sign in to comment.