Skip to content

Commit f2ceec4

Browse files
committed
Use new linker in CI
1 parent 523d4a9 commit f2ceec4

File tree

4 files changed

+41
-13
lines changed

4 files changed

+41
-13
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ jobs:
2626
sudo apt-get update -q
2727
sudo apt-get install libopenmpi-dev -y --no-install-recommends
2828
29-
- name: Install the Rust toolchain
30-
run: cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
29+
- name: Install the rust-ptx-linker
30+
run: |
31+
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
32+
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
33+
rm llvm.sh
34+
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
3135
3236
- name: Check the default features
3337
run: cargo check
@@ -57,8 +61,12 @@ jobs:
5761
sudo apt-get update -q
5862
sudo apt-get install libopenmpi-dev -y --no-install-recommends
5963
60-
- name: Install the Rust toolchain
61-
run: cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
64+
- name: Install the rust-ptx-linker
65+
run: |
66+
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
67+
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
68+
rm llvm.sh
69+
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
6270
6371
- name: Run the test-suite
6472
run: cargo test --workspace --no-fail-fast
@@ -85,8 +93,12 @@ jobs:
8593
sudo apt-get update -q
8694
sudo apt-get install libopenmpi-dev -y --no-install-recommends
8795
88-
- name: Install the Rust toolchain
89-
run: cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
96+
- name: Install the rust-ptx-linker
97+
run: |
98+
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
99+
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
100+
rm llvm.sh
101+
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
90102
91103
- name: Check the code style for the default features
92104
run: cargo clippy -- -D warnings

.github/workflows/coverage.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,16 @@ jobs:
3636
3737
- name: Install the Rust toolchain
3838
run: |
39-
cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
4039
cargo install grcov --force --locked
4140
rustup component add llvm-tools-preview
4241
42+
- name: Install the rust-ptx-linker
43+
run: |
44+
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
45+
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
46+
rm llvm.sh
47+
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
48+
4349
- name: Generate the code coverage
4450
run: |
4551
RUSTFLAGS="-Cinstrument-coverage" \

.github/workflows/rustdoc.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ jobs:
2121
sudo apt-get update -q
2222
sudo apt-get install libopenmpi-dev -y --no-install-recommends
2323
24-
- name: Install the Rust toolchain
25-
run: cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked
24+
- name: Install the rust-ptx-linker
25+
run: |
26+
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh
27+
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+")
28+
rm llvm.sh
29+
cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force
2630
2731
- name: Build the Documentation
2832
run: |

.gitpod.Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@ RUN echo "debconf debconf/frontend select Noninteractive" | sudo debconf-set-sel
1313
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub && \
1414
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /" && \
1515
sudo apt-get update -q && \
16-
sudo apt-get install cuda -y --no-install-recommends
16+
sudo apt-get install cuda -y --no-install-recommends && \
17+
wget https://apt.llvm.org/llvm.sh && chmod +x llvm.sh && \
18+
sudo ./llvm.sh $(rustc --version -v | grep -oP "LLVM version: \K\d+") && \
19+
rm llvm.sh && \
20+
sudo apt-get clean autoclean && \
21+
sudo apt-get autoremove -y && \
22+
sudo rm -rf /var/lib/{apt,dpkg,cache,log}/
1723

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

28-
RUN cargo install ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force --locked && \
29-
cargo install cargo-mpirun --force --locked && \
30-
cargo install cargo-reaper --git https://github.com/juntyr/grim-reaper --force --locked
34+
RUN cargo install rust-ptx-linker --git https://github.com/juntyr/rust-ptx-linker --force && \
35+
cargo install cargo-mpirun --force && \
36+
cargo install cargo-reaper --git https://github.com/juntyr/grim-reaper --force

0 commit comments

Comments
 (0)