bindings for hpx/algorithm.hpp #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MacOS - Build and Test | |
on: | |
pull_request: | |
branches: [ "main" ] | |
push: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
test: | |
runs-on: macos-latest | |
steps: | |
# HPX installation steps | |
- name: Install dependencies | |
run: brew install pkg-config hwloc llvm boost cmake ninja boost open-mpi asio swig | |
- name: Clone HPX | |
run: cd $HOME && git clone https://github.com/STEllAR-GROUP/hpx.git | |
- name: Create install directory | |
run: mkdir $HOME/hpx-install | |
- name: Configure HPX | |
run: cd $HOME/hpx && mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=$HOME/hpx-install -DHPX_WITH_FETCH_ASIO=ON -DHPX_WITH_MALLOC=system -DHPX_WITH_PKGCONFIG=ON -DCMAKE_BUILD_TYPE=Release -DHPX_WITH_EXAMPLES=Off -DHPX_WITH_TESTS=Off .. | |
- name: Build HPX | |
run: cd $HOME/hpx/build && make -j | |
- name: Install HPX | |
run: cd $HOME/hpx/build && make install | |
- name: Check HPX installation | |
run: | | |
if [ -d ~/hpx-install/lib/pkgconfig ]; then | |
echo "HPX installation successful: lib/pkgconfig directory found" | |
else | |
echo "Error: lib/pkgconfig directory not found in HPX installation" | |
exit 1 | |
fi | |
- uses: actions/checkout@v4 | |
- name: Set PKG_CONFIG_PATH | |
run: echo "PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$HOME/hpx-install/lib/pkgconfig" >> $GITHUB_ENV | |
- name: Set DYLD_LIBRARY_PATH | |
run: echo "DYLD_LIBRARY_PATH=$HOME/hpx-install/lib:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Test hpx-rs | |
run: cargo check && cargo test | |
- name: Test hpx-sys | |
working-directory: hpx-sys | |
run: cargo check && cargo test | |
- name: Check formatting | |
run: cargo fmt -- --check |