-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [WORKSPACE] add support again * [WORKSPACE] add smoke test * [WORKSPACE] right CI * [WORKSPACE] simple test * [BAZELMOD] add smoke test * [BAZELMOD] rename e2e test * [CI] add e2e. * [CI] fix module. * [CI] run E2E multiplatform. * [CI] simple CI. * [CI] simple matrix. * [CI] include windows. * [CI] add custom toolchain. * [CI] clean bre * [FORMAT] build files * [CI] fix windows * [CI] disable bazelmod in WORKSPACE * [CI] try windows bazel mod * [CI] try windows output path * [CI] use bash on windows * [CI] windows separate * [CI] run windows with bazelisk * [README] update badges * [CI] fix linux targets * [CI] single bazel version * [CI] no matrix version * [CI] windows concurrency
- Loading branch information
Showing
47 changed files
with
2,950 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
e2e/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
name: Remote | ||
name: BRE | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
pull_request: | ||
branches: [ master ] | ||
branches: [master] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
linux: | ||
name: Bazel Remote Execution | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: remote execution | ||
|
||
- name: run nativelink | ||
run: | | ||
cargo install --git https://github.com/TraceMachina/nativelink --tag v0.2.0 | ||
(nativelink .github/bre/basic_cas.json &) | ||
- name: remote execution | ||
run: | | ||
bazelisk build --config=remote --config=linux //examples/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
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-test-multi-bazel: | ||
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: ubuntu-latest | ||
env: | ||
TARGET: "aarch64-unknown-linux-gnu" | ||
- os: macos-latest | ||
env: | ||
TARGET: "x86_64-apple-darwin" | ||
- os: macos-latest | ||
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 //... |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
build --incompatible_enable_cc_toolchain_resolution | ||
build --enable_bzlmod=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
"""Provides a simple way to test your rules as an external workspace. | ||
Add a basic smoke-test target below. | ||
""" | ||
|
||
load("@bazel_skylib//rules:build_test.bzl", "build_test") | ||
|
||
build_test( | ||
name = "arm_linux_test", | ||
targets = ["//arm-linux:hex"], | ||
) | ||
|
||
build_test( | ||
name = "arm_none_test", | ||
targets = ["//arm-none:hex"], | ||
) | ||
|
||
build_test( | ||
name = "custom_toolchain_test", | ||
targets = [ | ||
"//custom:cortex_m4_elf", | ||
"//custom:cortex_m3_elf", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"""ARM cross compilation toolchains for bazel""" | ||
|
||
module( | ||
name = "smoke", | ||
version = "0.0.1", | ||
) | ||
|
||
bazel_dep(name = "aspect_bazel_lib", version = "2.0.0") | ||
bazel_dep(name = "bazel_skylib", version = "1.5.0") | ||
bazel_dep(name = "arm_gnu_toolchain") | ||
|
||
local_path_override( | ||
module_name = "arm_gnu_toolchain", | ||
path = "../..", | ||
) | ||
|
||
arm_toolchain = use_extension("@arm_gnu_toolchain//:extensions.bzl", "arm_toolchain") | ||
|
||
arm_toolchain.arm_none_eabi(version = "13.2.1") | ||
|
||
use_repo( | ||
arm_toolchain, | ||
"arm_none_eabi", | ||
"arm_none_eabi_darwin_arm64", | ||
"arm_none_eabi_darwin_x86_64", | ||
"arm_none_eabi_linux_aarch64", | ||
"arm_none_eabi_linux_x86_64", | ||
"arm_none_eabi_windows_x86_64", | ||
) | ||
|
||
arm_toolchain.arm_none_linux_gnueabihf(version = "13.2.1") | ||
|
||
use_repo( | ||
arm_toolchain, | ||
"arm_none_linux_gnueabihf", | ||
"arm_none_linux_gnueabihf_linux_aarch64", | ||
"arm_none_linux_gnueabihf_linux_x86_64", | ||
"arm_none_linux_gnueabihf_windows_x86_64", | ||
) | ||
|
||
register_toolchains( | ||
"@arm_none_eabi//toolchain:all", | ||
"@arm_none_linux_gnueabihf//toolchain:all", | ||
"//custom/toolchain:all", | ||
) |
Oops, something went wrong.