Skip to content

Commit 1662c32

Browse files
pawelrutkaqarkjedrz
authored andcommitted
Support aarch64 build
1 parent 757d17d commit 1662c32

4 files changed

Lines changed: 1746 additions & 638 deletions

File tree

.bazelrc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ build:x86_64-linux --platforms=@score_bazel_platforms//:x86_64-linux-gcc_12.2.0-
4646
build:x86_64-linux --extra_toolchains=@score_gcc_x86_64_toolchain//:x86_64-linux-gcc_12.2.0-posix
4747
build:x86_64-linux --extra_toolchains=@score_toolchains_rust//toolchains/ferrocene:ferrocene_x86_64_unknown_linux_gnu
4848

49-
# TODO arm64-linux when rust support is there
49+
# Target configuration for CPU:AArch64|OS:Linux build (do not use it in case of system toolchains!)
50+
build:arm64-linux --config=stub
51+
build:arm64-linux --config=toolchain_common
52+
build:arm64-linux --platforms=@score_bazel_platforms//:aarch64-linux-gcc_12.2.0-posix
53+
build:arm64-linux --extra_toolchains=@score_gcc_aarch64_toolchain//:aarch64-linux-gcc_12.2.0-posix
54+
build:arm64-linux --extra_toolchains=@score_toolchains_rust//toolchains/ferrocene:ferrocene_aarch64_unknown_linux_gnu
5055

5156
# Target configuration for CPU:x86-64|OS:QNX build (do not use it in case of system toolchains!)
5257
build:x86_64-qnx --config=stub

.github/workflows/build.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ on:
2222
- main
2323
jobs:
2424
build:
25-
name: Build Bazel Code
2625
runs-on: ubuntu-latest
26+
strategy:
27+
matrix:
28+
config: [x86_64-linux, arm64-linux]
2729
steps:
2830
- name: Checkout code
2931
uses: actions/checkout@v4.2.2
@@ -32,7 +34,7 @@ jobs:
3234
uses: bazel-contrib/setup-bazel@0.18.0
3335
with:
3436
bazelisk-cache: true
35-
disk-cache: ${{ github.workflow }}
37+
disk-cache: ${{ github.workflow }}-${{ matrix.config }}
3638
repository-cache: true
3739
cache-save: ${{ github.event_name == 'push' }}
3840

@@ -46,4 +48,4 @@ jobs:
4648
4749
- name: Build with Bazel
4850
run: |
49-
bazel build --lockfile_mode=error --config x86_64-linux //src/... //examples/...
51+
bazel build --lockfile_mode=error --config ${{ matrix.config }} //src/... //examples/...

MODULE.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ use_repo(
7878
)
7979

8080
## Rust Toolchain
81-
bazel_dep(name = "score_toolchains_rust", version = "0.4.0", dev_dependency = True)
81+
bazel_dep(name = "score_toolchains_rust", version = "0.8.0", dev_dependency = True)
8282

8383
# S-CORE crates
8484
bazel_dep(name = "score_crates", version = "0.0.8")
8585
git_override(
8686
module_name = "score_crates",
87-
commit = "c56d8f4006ff1cfe5be532496225255c5ee6c2d6",
87+
commit = "90539da0fd3e7e23e01f2b4de1679f7dfadd3b6b",
8888
remote = "https://github.com/eclipse-score/score-crates.git",
8989
)
9090

0 commit comments

Comments
 (0)