Skip to content

Commit

Permalink
[SOL] CI: build and test sbf target
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov authored and LucasSte committed Aug 22, 2024
1 parent 3bcb531 commit d05f5ec
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
ENABLE_GCC_CODEGEN: "1"
os: ubuntu-20.04-16core-64gb
env: {}
- name: bpfel-unknown-unknown
- name: sbf-solana-solana
os: ubuntu-latest
env: {}
- name: x86_64-gnu-tools
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
- name: x86_64-gnu-llvm-10
os: ubuntu-latest
env: {}
- name: bpfel-unknown-unknown
- name: sbf-solana-solana
os: ubuntu-latest
env: {}
timeout-minutes: 600
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ esac
if [ "$1" == "--llvm" ]; then
rm -f build/${HOST_TRIPLE}/llvm/llvm-finished-building;
fi
./x.py build --stage 1 --target ${HOST_TRIPLE},bpfel-unknown-unknown
./x.py build --stage 1 --target ${HOST_TRIPLE},bpfel-unknown-unknown,sbf-solana-solana
3 changes: 2 additions & 1 deletion library/core/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,9 @@ mod any;
mod array;
mod ascii;
mod asserting;
#[cfg(not(any(target_arch = "bpf", target_arch = "sbf")))]
mod async_iter;
#[cfg(not(target_arch = "bpf"))]
#[cfg(not(any(target_arch = "bpf", target_arch = "sbf")))]
mod atomic;
mod bool;
mod cell;
Expand Down
1 change: 1 addition & 0 deletions src/ci/docker/host-x86_64/dist-various-1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ ENV TARGETS=$TARGETS,aarch64-pc-windows-gnullvm
ENV TARGETS=$TARGETS,i686-pc-windows-gnullvm
ENV TARGETS=$TARGETS,x86_64-pc-windows-gnullvm
ENV TARGETS=$TARGETS,bpfel-unknown-unknown
ENV TARGETS=$TARGETS,sbf-solana-solana

ENV CFLAGS_armv5te_unknown_linux_musleabi="-march=armv5te -marm -mfloat-abi=soft" \
CFLAGS_arm_unknown_linux_musleabi="-march=armv6 -marm" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ ENV RUST_CONFIGURE_ARGS \
--set llvm.clang

ENV SCRIPT CARGO_TARGET_BPFEL_UNKNOWN_UNKNOWN_RUNNER=\"cargo-run-bpf-tests --heap-size 104857600\" \
CARGO_TARGET_SBF_SOLANA_SOLANA_RUNNER=\"cargo-run-bpf-tests --heap-size 104857600\" \
LLVM_HOME=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm \
PATH="${HOME}/.cargo/bin:${PATH}" \
python3 /checkout/x.py --stage 1 test --host='' --target bpfel-unknown-unknown \
python3 /checkout/x.py --stage 1 test --host='' --target bpfel-unknown-unknown,sbf-solana-solana \
library/core
4 changes: 2 additions & 2 deletions src/ci/github-actions/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ jobs:
ENABLE_GCC_CODEGEN: "1"
<<: *job-linux-16c

- name: bpfel-unknown-unknown
- name: sbf-solana-solana
<<: *job-linux-xl

- name: x86_64-gnu-tools
Expand All @@ -394,7 +394,7 @@ jobs:
- name: x86_64-gnu-llvm-10
<<: *job-linux-xl

- name: bpfel-unknown-unknown
- name: sbf-solana-solana
<<: *job-linux-xl

auto:
Expand Down

0 comments on commit d05f5ec

Please sign in to comment.