Skip to content

Commit

Permalink
Use new linker in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
juntyr committed Dec 21, 2023
1 parent 523d4a9 commit f2ceec4
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 13 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ jobs:
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends
- name: Install the Rust toolchain
run: cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
- name: Install the rust-ptx-linker
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
- name: Check the default features
run: cargo check
Expand Down Expand Up @@ -57,8 +61,12 @@ jobs:
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends
- name: Install the Rust toolchain
run: cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
- name: Install the rust-ptx-linker
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
- name: Run the test-suite
run: cargo test --workspace --no-fail-fast
Expand All @@ -85,8 +93,12 @@ jobs:
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends
- name: Install the Rust toolchain
run: cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
- name: Install the rust-ptx-linker
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
- name: Check the code style for the default features
run: cargo clippy -- -D warnings
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,16 @@ jobs:
- name: Install the Rust toolchain
run: |
cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
cargo install grcov --force --locked
rustup component add llvm-tools-preview
- name: Install the rust-ptx-linker
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
- name: Generate the code coverage
run: |
RUSTFLAGS="-Cinstrument-coverage" \
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/rustdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ jobs:
sudo apt-get update -q
sudo apt-get install libopenmpi-dev -y --no-install-recommends
- name: Install the Rust toolchain
run: cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
- name: Install the rust-ptx-linker
run: |
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
rm llvm.sh
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
- name: Build the Documentation
run: |
Expand Down
14 changes: 10 additions & 4 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ RUN echo "debconf debconf/frontend select Noninteractive" | sudo debconf-set-sel
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub && \
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" && \
sudo apt-get update -q && \
sudo apt-get install cuda -y --no-install-recommends
sudo apt-get install cuda -y --no-install-recommends && \
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && \
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+") && \
rm llvm.sh && \
sudo apt-get clean autoclean && \
sudo apt-get autoremove -y && \
sudo rm -rf /var/lib/{apt,dpkg,cache,log}/

RUN sudo apt-get update -q && \
sudo apt-get upgrade -y && \
Expand All @@ -25,6 +31,6 @@ RUN sudo apt-get update -q && \
sudo apt-get autoremove -y && \
sudo rm -rf /var/lib/{apt,dpkg,cache,log}/

RUN cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked && \
cargo install cargo-mpirun --force --locked && \
cargo install cargo-reaper --git https://github.com/juntyr/grim-reaper --force --locked
RUN cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force && \
cargo install cargo-mpirun --force && \
cargo install cargo-reaper --git https://github.com/juntyr/grim-reaper --force

0 comments on commit f2ceec4

Please sign in to comment.