-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (30 loc) · 924 Bytes
/
build.yaml
File metadata and controls
31 lines (30 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
# rules_oci currently not working on windows
# https://github.com/bazel-contrib/rules_oci/pull/827
if: matrix.os != 'windows-latest'
run: bazel build //server:image-multiarch