Skip to content

Commit 9d737db

Browse files
dmakarovLucasSte
authored andcommitted
[SOL] CI: build and test sbf target
1 parent e118ce5 commit 9d737db

File tree

6 files changed

+10
-7
lines changed

6 files changed

+10
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
ENABLE_GCC_CODEGEN: "1"
7676
os: ubuntu-20.04-16core-64gb
7777
env: {}
78-
- name: bpfel-unknown-unknown
78+
- name: sbf-solana-solana
7979
os: ubuntu-latest
8080
env: {}
8181
- name: x86_64-gnu-tools
@@ -193,7 +193,7 @@ jobs:
193193
- name: x86_64-gnu-llvm-10
194194
os: ubuntu-latest
195195
env: {}
196-
- name: bpfel-unknown-unknown
196+
- name: sbf-solana-solana
197197
os: ubuntu-latest
198198
env: {}
199199
timeout-minutes: 600

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ esac
1919
if [ "$1" == "--llvm" ]; then
2020
rm -f build/${HOST_TRIPLE}/llvm/llvm-finished-building;
2121
fi
22-
./x.py build --stage 1 --target ${HOST_TRIPLE},bpfel-unknown-unknown
22+
./x.py build --stage 1 --target ${HOST_TRIPLE},bpfel-unknown-unknown,sbf-solana-solana

library/core/tests/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ mod any;
129129
mod array;
130130
mod ascii;
131131
mod asserting;
132+
#[cfg(not(any(target_arch = "bpf", target_arch = "sbf")))]
132133
mod async_iter;
133-
#[cfg(not(target_arch = "bpf"))]
134+
#[cfg(not(any(target_arch = "bpf", target_arch = "sbf")))]
134135
mod atomic;
135136
mod bool;
136137
mod cell;

src/ci/docker/host-x86_64/dist-various-1/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ ENV TARGETS=$TARGETS,aarch64-pc-windows-gnullvm
118118
ENV TARGETS=$TARGETS,i686-pc-windows-gnullvm
119119
ENV TARGETS=$TARGETS,x86_64-pc-windows-gnullvm
120120
ENV TARGETS=$TARGETS,bpfel-unknown-unknown
121+
ENV TARGETS=$TARGETS,sbf-solana-solana
121122

122123
ENV CFLAGS_armv5te_unknown_linux_musleabi="-march=armv5te -marm -mfloat-abi=soft" \
123124
CFLAGS_arm_unknown_linux_musleabi="-march=armv6 -marm" \

src/ci/docker/host-x86_64/bpfel-unknown-unknown/Dockerfile renamed to src/ci/docker/host-x86_64/sbf-solana-solana/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ ENV RUST_CONFIGURE_ARGS \
3232
--set llvm.clang
3333

3434
ENV SCRIPT CARGO_TARGET_BPFEL_UNKNOWN_UNKNOWN_RUNNER=\"cargo-run-bpf-tests --heap-size 104857600\" \
35+
CARGO_TARGET_SBF_SOLANA_SOLANA_RUNNER=\"cargo-run-bpf-tests --heap-size 104857600\" \
3536
LLVM_HOME=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm \
3637
PATH="${HOME}/.cargo/bin:${PATH}" \
37-
python3 /checkout/x.py --stage 1 test --host='' --target bpfel-unknown-unknown \
38+
python3 /checkout/x.py --stage 1 test --host='' --target bpfel-unknown-unknown,sbf-solana-solana \
3839
library/core

src/ci/github-actions/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ jobs:
373373
ENABLE_GCC_CODEGEN: "1"
374374
<<: *job-linux-16c
375375

376-
- name: bpfel-unknown-unknown
376+
- name: sbf-solana-solana
377377
<<: *job-linux-xl
378378

379379
- name: x86_64-gnu-tools
@@ -394,7 +394,7 @@ jobs:
394394
- name: x86_64-gnu-llvm-10
395395
<<: *job-linux-xl
396396

397-
- name: bpfel-unknown-unknown
397+
- name: sbf-solana-solana
398398
<<: *job-linux-xl
399399

400400
auto:

0 commit comments

Comments
 (0)