-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from cpmech/remove-mpi-dependency
Remove mpi dependency
- Loading branch information
Showing
53 changed files
with
644 additions
and
633 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Test on Arch Linux | ||
on: [pull_request] | ||
jobs: | ||
test_on_arch_linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build docker image | ||
run: | | ||
bash zscripts/docker-build-image.bash arch |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM archlinux:base-devel | ||
|
||
# initialize | ||
RUN pacman -Sy go git --noconfirm | ||
|
||
# set user | ||
RUN useradd -G wheel -m user | ||
RUN echo "user ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | ||
RUN chown -R user:wheel /usr/local/src/ | ||
USER user | ||
WORKDIR /usr/local/src/ | ||
|
||
# install yay | ||
RUN git clone https://aur.archlinux.org/yay.git | ||
RUN cd yay && makepkg -si --noconfirm | ||
RUN sudo rm -f \ | ||
/var/cache/pacman/pkg/* \ | ||
/var/lib/pacman/sync/* \ | ||
/README \ | ||
/etc/pacman.d/mirrorlist.pacnew | ||
|
||
# install libraries for russell | ||
RUN yay -Y --gendb --noconfirm && yay -Y --devel --save | ||
RUN yay -Syu blas-openblas --noconfirm | ||
RUN yay -Syu suitesparse --noconfirm | ||
|
||
# install rust | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y | ||
ENV PATH="/home/user/.cargo/bin:${PATH}" | ||
|
||
# copy files | ||
COPY --chown=user:user . russell | ||
WORKDIR russell | ||
|
||
# run tests | ||
RUN cargo test |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM ubuntu:22.04 | ||
|
||
# disable tzdata questions | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# use bash | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
# install apt-utils | ||
RUN apt-get update -y && \ | ||
apt-get install -y apt-utils 2> >( grep -v 'debconf: delaying package configuration, since apt-utils is not installed' >&2 ) \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# essential tools | ||
RUN apt-get update -y && apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
build-essential \ | ||
liblapacke-dev \ | ||
libopenblas-dev \ | ||
libsuitesparse-dev \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# install rust | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
# copy files | ||
COPY . /tmp/russell | ||
WORKDIR /tmp/russell | ||
|
||
# compile MUMPS | ||
RUN bash zscripts/compile-and-install-mumps.bash | ||
|
||
# run tests | ||
RUN cargo test --features with_mumps |
Oops, something went wrong.