Skip to content

Commit

Permalink
Test if installation can help
Browse files Browse the repository at this point in the history
  • Loading branch information
syjn99 committed Aug 29, 2024
1 parent 07791a1 commit 6fdbec7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/_build-bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ jobs:
with:
bazelisk-cache: true

- name: Install dependencies for cross-compilation
run: |
sudo apt-get update
# Install general build dependencies
sudo apt-get install -y build-essential clang
# Install additional dependencies for different platforms if necessary
if [[ "${{ inputs.build-type }}" == "windows_amd64" ]]; then
sudo apt-get install -y mingw-w64
elif [[ "${{ inputs.build-type }}" == "osx_amd64" || "${{ inputs.build-type }}" == "osx_arm64" ]]; then
sudo apt-get install -y llvm
fi
- name: Build ${{ inputs.build-type }}
run: |
bazel build --sandbox_debug --verbose_failures --config=release --config=${{ inputs.build-type }} \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
matrix:
symbol-list:
# [osx_amd64, osx_arm64, windows_amd64, linux_amd64, linux_arm64]
[linux_amd64]
[osx_amd64, osx_arm64, windows_amd64, linux_arm64]
uses: ./.github/workflows/_build-bazel.yml
with:
build-type: ${{ matrix.symbol-list }}
Expand Down

0 comments on commit 6fdbec7

Please sign in to comment.