diff --git a/.github/workflows/basic_cli_build_release.yml b/.github/workflows/basic_cli_build_release.yml index 8718b8e292..46684e4923 100644 --- a/.github/workflows/basic_cli_build_release.yml +++ b/.github/workflows/basic_cli_build_release.yml @@ -122,13 +122,7 @@ jobs: - run: ./roc build --bundle=.tar.br ./basic-cli/src/main.roc - - run: ls - - - run: ls basic-cli - - - run: ls basic-cli/src - - - run: echo "TAR_FILENAME=$(ls | grep '.tar.br')" >> $GITHUB_ENV + - run: echo "TAR_FILENAME=$(ls -d basic-cli/src/* | grep '.tar.br')" >> $GITHUB_ENV - name: Upload platform archive uses: actions/upload-artifact@v3 diff --git a/ci/build_basic_cli.sh b/ci/build_basic_cli.sh index e9b61489a1..132b174a72 100755 --- a/ci/build_basic_cli.sh +++ b/ci/build_basic_cli.sh @@ -21,7 +21,7 @@ ls | grep "roc_nightly.*tar\.gz" | xargs tar -xzvf EXTRA_ARGS=${2:-} # In some rare cases it's nice to be able to use the legacy linker, so we produce the .o file to be able to do that -if [ ! -z ${EXTRA_ARGS} ]; +if [ -n "${EXTRA_ARGS}" ]; then ./roc build $EXTRA_ARGS ../basic-cli/examples/file.roc fi