Skip to content

[CI] unify

[CI] unify #30

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
e2e-unix:
name: ${{ matrix.env.TARGET }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
env:
TARGET: "x86_64-unknown-linux-gnu"
- os: macos-12
env:
TARGET: "x86_64-apple-darwin"
- os: macos-14
env:
TARGET: "aarch64-apple-darwin"
env:
USE_BAZEL_VERSION: "7.x"
steps:
- uses: actions/checkout@v2
- name: run e2e tests - workspace
working-directory: e2e/workspace
run: |
bazel test //...
- name: run e2e tests - bzlmod
working-directory: e2e/bzlmod
run: |
bazel test //...
e2e-windows:
name: ${{ matrix.env.TARGET }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
env:
TARGET: "x86_64-pc-windows"
env:
USE_BAZEL_VERSION: "7.x"
steps:
- uses: actions/checkout@v2
- name: build examples - windows
run: |
bazel --output_user_root=C:/bzl build //examples/...