-
Notifications
You must be signed in to change notification settings - Fork 306
59 lines (43 loc) · 1.26 KB
/
build-bazel.yml
File metadata and controls
59 lines (43 loc) · 1.26 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: build-bazel
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
bazel:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v4
- uses: bazelbuild/setup-bazelisk@v3
- name: bazel clean
run: bazel clean
- name: build bazel
run: bazel build //...
- name: test all
run: bazel test --test_output=all //...
- name: test example
run: ./bazel-bin/call-highs-example
# - name: Upload bazel-testlogs
# uses: actions/upload-artifact@v4
# with:
# name: bazel-testlogs-${{ matrix.os }}
# path: bazel-testlogs/
bazel-win_:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
# Bazelisk is available via Chocolatey (on Windows)
- name: Install Bazelisk
run: |
choco install bazelisk --yes
bazelisk version
- name: Build with Bazelisk
run: bazelisk build //...
- name: Run tests with Bazelisk
run: bazelisk test --test_output=all //...
- name: test example
run: ./bazel-bin/call-highs-example.exe