1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-03 06:03:17 +02:00

ci: Add amd64 macos bazel workflow (#324)

* ci: Add amd64 MacOS Bazel job

* bazel: Fix MacOS build

* add amd64_macos_bazel badge
This commit is contained in:
Mizux
2023-08-30 17:17:34 +02:00
committed by GitHub
parent e2d0f2ca21
commit 2a3ef54701
5 changed files with 55 additions and 3 deletions

35
.github/workflows/amd64_macos_bazel.yml vendored Normal file
View File

@ -0,0 +1,35 @@
name: amd64 MacOS Bazel
on:
push:
pull_request:
schedule:
# min hours day(month) month day(week)
- cron: '0 0 7,22 * *'
jobs:
# Building using the github runner environement directly.
bazel:
runs-on: macos-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install Bazel
run: |
brew update
brew unlink bazelisk
brew install bazel
- name: Check Bazel
run: bazel version
- name: Build
run: >
bazel build
-c opt
--subcommands=true
...
- name: Test
run: >
bazel test
-c opt
--test_output=errors
...