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 Feb 1, 2024
1 parent 8c99720 commit 63a12d1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,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 @@ -195,7 +195,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
2 changes: 1 addition & 1 deletion library/core/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ mod any;
mod array;
mod ascii;
mod asserting;
#[cfg(not(target_arch = "bpf"))]
#[cfg(not(any(target_arch = "bpf", target_arch = "sbf")))]
mod atomic;
mod bool;
mod cell;
Expand Down
2 changes: 1 addition & 1 deletion src/ci/docker/host-x86_64/dist-various-1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ ENV TARGETS=$TARGETS,armv7r-none-eabi
ENV TARGETS=$TARGETS,armv7r-none-eabihf
ENV TARGETS=$TARGETS,thumbv7neon-unknown-linux-gnueabihf
ENV TARGETS=$TARGETS,armv7a-none-eabi
ENV TARGETS=$TARGETS,bpfel-unknown-unknown
ENV TARGETS=$TARGETS,sbf-solana-solana

# riscv targets currently do not need a C compiler, as compiler_builtins
# doesn't currently have it enabled, and the riscv gcc compiler is not
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 @@ -343,7 +343,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 @@ -364,7 +364,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 63a12d1

Please sign in to comment.