Skip to content

Commit 2d9bebc

Browse files
committed
CI: make workflow agnostic of OS
1 parent e668434 commit 2d9bebc

1 file changed

Lines changed: 11 additions & 12 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,23 @@ jobs:
2020
- name: Checkout code
2121
uses: actions/checkout@v6
2222

23-
- name: Setup LLVM 22
23+
- name: Setup LLVM
2424
uses: ZhongRuoyu/setup-llvm@v0
2525
with:
2626
llvm-version: 22
2727

28-
- name: Install dependencies (Linux)
29-
if: runner.os == 'Linux'
30-
run: sudo apt-get install -y python3-tomli
28+
- name: Setup Rust
29+
uses: dtolnay/rust-toolchain@master
30+
with:
31+
toolchain: 1.94.0
3132

32-
- name: Install dependencies (macOS)
33-
if: runner.os == 'macOS'
34-
run: |
35-
pip3 install tomli --break-system-packages
33+
- name: Setup Python
34+
uses: actions/setup-python@v6
35+
with:
36+
cache: 'pip'
3637

37-
- name: Install Rust toolchain
38-
run: |
39-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain 1.94.0
40-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
38+
- name: Install Python dependencies
39+
- run: pip install tomli
4140

4241
- name: Configure
4342
run: |

0 commit comments

Comments
 (0)