Skip to content

Commit

Permalink
feat: fix github and buildkite workflow with Windows (#4)
Browse files Browse the repository at this point in the history
fix github and buildkite workflow with Windows.
Avoiding Buildkite doing two build for each Test dut to two separate workflows.
  • Loading branch information
0-Sacha authored Apr 21, 2024
1 parent cb460a6 commit 59c10b4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
16 changes: 6 additions & 10 deletions .buildkite/linux_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ agents:
queue: "agent-runners-linux-amd64"

steps:
- label: ":bazel: Build on gcc"
- label: ":bazel: Build and Test on gcc"
commands:
- CC=gcc bazelisk build //...
- label: ":bazel: Test on gcc"
commands:
- CC=gcc bazelisk test //...
- CC=gcc bazelisk build --config=default_compiler_opt //...
- CC=gcc bazelisk test --config=default_compiler_opt //...

- label: ":bazel: Build on Clang"
commands:
- CC=clang bazelisk build //...
- label: ":bazel: Test on Clang"
- label: ":bazel: Build and Test on Clang"
commands:
- CC=clang bazelisk test //...
- CC=clang bazelisk build --config=default_compiler_opt //...
- CC=clang bazelisk test --config=default_compiler_opt //...
6 changes: 2 additions & 4 deletions .buildkite/windows_amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ agents:
steps:
- label: ":bazel: Build"
commands:
- bazelisk build //...
- label: ":bazel: Test"
commands:
- bazelisk test //...
- bazelisk build --config=microsoft_compiler_opt //...
- bazelisk test --config=microsoft_compiler_opt //...
12 changes: 6 additions & 6 deletions .github/workflows/ProjectCore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
path: "~/.cache/bazel"
key: bazel
- name: Building...
run: bazelisk build //...
run: bazelisk build --config=microsoft_compiler_opt //...
- name: Testing...
run: bazelisk test //...
run: bazelisk test --config=microsoft_compiler_opt //...

ubuntu-latest-gcc:
runs-on: ubuntu-latest
Expand All @@ -37,9 +37,9 @@ jobs:
- name: Version
run: gcc --version
- name: Building...
run: CC=gcc bazelisk build //...
run: CC=gcc bazelisk build --config=default_compiler_opt //...
- name: Testing...
run: CC=gcc bazelisk test //...
run: CC=gcc bazelisk test --config=default_compiler_opt //...

ubuntu-latest-clang:
runs-on: ubuntu-latest
Expand All @@ -59,6 +59,6 @@ jobs:
- name: Version
run: clang --version
- name: Building...
run: CC=clang++-17 bazelisk build //...
run: CC=clang++-17 bazelisk build --config=default_compiler_opt //...
- name: Testing...
run: CC=clang++-17 bazelisk test //...
run: CC=clang++-17 bazelisk test --config=default_compiler_opt //...

0 comments on commit 59c10b4

Please sign in to comment.