Skip to content

Commit

Permalink
Merge pull request #1972 from hzeller/20230719-release-mac
Browse files Browse the repository at this point in the history
Package up MacOS binaries.
  • Loading branch information
hzeller authored Jul 20, 2023
2 parents f5d08d3 + 8ccf59a commit 7d301d5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/bin/simple-install.sh
Original file line number Diff line number Diff line change
@@ -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 <target-dir>"
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
16 changes: 15 additions & 1 deletion .github/workflows/verible-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7d301d5

Please sign in to comment.