update deps #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
fail-fast: false | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
- name: customize windows | |
if: matrix.os == 'windows-latest' | |
run: | | |
echo "startup --output_user_root=C:/" >> $HOME/.bazelrc | |
echo "startup --windows_enable_symlinks" >> $HOME/.bazelrc | |
echo "build --enable_runfiles" >> $HOME/.bazelrc | |
- name: build | |
run: bazel build //server | |
- name: build opt | |
run: bazel build //server:opt | |
- name: build arm64 image | |
# docker golang library not implemented on windows | |
if: matrix.os != 'windows-latest' | |
run: bazel build //server:image-arm64 |