diff --git a/.github/bin/simple-install.sh b/.github/bin/simple-install.sh new file mode 100755 index 000000000..4b66e8f1e --- /dev/null +++ b/.github/bin/simple-install.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +# Simple install script, as MacOS install is not working with our install target +# +# Should be consolidated with githhub-releases-setup.sh, but for now keeping it +# simple to run on limited platforms. +## + +set -e + +if [ $# -ne 1 ]; then + echo "usage $0 " + exit 1 +fi + +TARGET_DIR=$1 +mkdir -p "${TARGET_DIR}" + +BASE_DIR=bazel-bin/verilog/tools + +for f in diff/verible-verilog-diff \ + formatter/verible-verilog-format \ + kythe/verible-verilog-kythe-extractor \ + lint/verible-verilog-lint \ + ls/verible-verilog-ls \ + obfuscator/verible-verilog-obfuscate \ + preprocessor/verible-verilog-preprocessor \ + project/verible-verilog-project \ + syntax/verible-verilog-syntax +do + install "${BASE_DIR}/$f" "${TARGET_DIR}" +done diff --git a/.github/workflows/verible-ci.yml b/.github/workflows/verible-ci.yml index fbf95c0b6..ad507d594 100644 --- a/.github/workflows/verible-ci.yml +++ b/.github/workflows/verible-ci.yml @@ -448,7 +448,21 @@ jobs: restore-keys: bazelcache_macos_ - name: Tests - run: bazel test --noshow_progress --test_output=errors --cxxopt=-Wno-range-loop-analysis //... + run: bazel test -c opt --noshow_progress --test_output=errors --cxxopt=-Wno-range-loop-analysis //... + + - name: Build + run: bazel build -c opt --noshow_progress --test_output=errors --cxxopt=-Wno-range-loop-analysis :install-binaries + + - name: Pack up + run: | + VERSION=$(git describe --match=v*) + .github/bin/simple-install.sh verible-${VERSION}-macOS + tar cvzf verible-${VERSION}-macOS.tar.gz verible-${VERSION}-macOS + + - name: 📤 Upload artifact + uses: actions/upload-artifact@v2 + with: + path: verible-*.tar.gz PrepareVSPlugin: container: ubuntu:jammy