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 committed Dec 23, 2021
1 parent 3c1d3db commit 5653a70
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,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 Expand Up @@ -166,7 +166,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
4 changes: 2 additions & 2 deletions library/core/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@
#![feature(unzip_option)]
#![deny(unsafe_op_in_unsafe_fn)]

#[cfg(not(target_arch = "bpf"))]
#[cfg(not(any(target_arch = "bpf", target_arch = "sbf")))]
extern crate test;

mod alloc;
mod any;
mod array;
mod ascii;
#[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 @@ -140,7 +140,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 @@ -293,7 +293,7 @@ jobs:
- name: x86_64-gnu-llvm-10
<<: *job-linux-xl

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

push:
Expand All @@ -311,7 +311,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 5653a70

Please sign in to comment.