Skip to content

Commit

Permalink
[CI] simple windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdae committed Mar 28, 2024
1 parent c486ffa commit e7e8bd4
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 119 deletions.
43 changes: 16 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,33 @@ on:
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 }}
multiplatform:
name: ${{ matrix.dir }} / ${{ matrix.os }}
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"
- os: windows-latest
env:
TARGET: "x86_64-pc-windows"

dir: ["e2e/bzlmod", "e2e/workspace"]
os: [ubuntu-latest, macos-12, macos-14]
env:
USE_BAZEL_VERSION: "7.x"

steps:
- uses: actions/checkout@v2
- name: test - ${{ matrix.dir }}
working-directory: ${{ matrix.dir }}
run: bazel test //...

- name: run e2e tests - workspace
working-directory: e2e/workspace
run: |
bazel test //...
- name: run e2e tests - bzlmod
working-directory: e2e/bzlmod
run: |
bazel test //...
windows:
name: root / windows
runs-on: windows-latest
env:
USE_BAZEL_VERSION: "7.x"
steps:
- uses: actions/checkout@v2
- name: windows build
run: bazel --output_user_root=C:/bzl build //...
30 changes: 0 additions & 30 deletions .github/workflows/linux.yml.disable

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/mac.yml.disable

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/windows.yml.disable

This file was deleted.

3 changes: 0 additions & 3 deletions e2e/bzlmod/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
common --enable_platform_specific_config
startup:windows --output_user_root=C:/tmp

build --incompatible_enable_cc_toolchain_resolution
build --enable_bzlmod=true
3 changes: 0 additions & 3 deletions e2e/workspace/.bazelrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
common --enable_platform_specific_config
startup:windows --output_user_root=C:/tmp

build --incompatible_enable_cc_toolchain_resolution
build --enable_bzlmod=false

0 comments on commit e7e8bd4

Please sign in to comment.