Skip to content

Commit

Permalink
Fix llvm install
Browse files Browse the repository at this point in the history
  • Loading branch information
vcfxb committed Jan 31, 2024
1 parent b673f8e commit 64cab9a
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 11 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cargo-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ on: ["push", "pull_request"]

jobs:
check:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
working-directory: ./wright
steps:
- uses: actions/checkout@v4
- name: Install LLVM package
run: sudo apt-get install llvm-17-dev
run: |
deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
sudo apt-get install llvm-17-dev
- name: Check rust code
run: cargo check
working-directory: ${{env.working-directory}}
7 changes: 5 additions & 2 deletions .github/workflows/cargo-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ on: ["push", "pull_request"]

jobs:
clippy:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
working-directory: ./wright
steps:
- uses: actions/checkout@v4
- name: Install LLVM package
run: sudo apt-get install llvm-17-dev
run: |
deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
sudo apt-get install llvm-17-dev
- name: Run Clippy
run: cargo clippy -- --deny clippy::all --deny warnings
working-directory: ${{env.working-directory}}
7 changes: 5 additions & 2 deletions .github/workflows/cargo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ on: ["push", "pull_request"]

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
env:
working-directory: ./wright
steps:
- uses: actions/checkout@v4
- name: Install LLVM package
run: sudo apt-get install llvm-17-dev
run: |
deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
sudo apt-get install llvm-17-dev
- name: Run tests
run: cargo test
working-directory: ${{env.working-directory}}
7 changes: 5 additions & 2 deletions .github/workflows/grcov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ name: Code Coverage

jobs:
coverage:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install LLVM package
run: sudo apt-get install llvm-17-dev
run: |
deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
sudo apt-get install llvm-17-dev
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,14 @@ concurrency:
jobs:
# Build job
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install LLVM package
run: sudo apt-get install llvm-17-dev
run: |
deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main
sudo apt-get install llvm-17-dev
- name: Install mdBook
run: |
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf -y | sh
Expand Down

0 comments on commit 64cab9a

Please sign in to comment.