Skip to content

Commit

Permalink
Add user flag to pip install in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TheQuantumPhysicist authored and OBorce committed May 15, 2024
1 parent 46af2dd commit 15a7da3
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,14 @@ jobs:
runs-on: macos-latest
# if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- name: Install python toml package
run: python3 -m pip install toml
- name: Install rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $(python3 ./build-tools/rust-version-extractor/rust-version-extractor.py)
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install python toml package
run: python3 -m pip install toml --break-system-packages --user
- name: Install rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $(python3 ./build-tools/rust-version-extractor/rust-version-extractor.py)
- name: Build
run: cargo build --release --locked
- name: Run tests
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,48 @@ jobs:
run: cargo install cargo-deny --locked
- name: Run checks
run: ./do_checks.sh

static_checks_windows:
runs-on: windows-latest
steps:
# This prevents git from changing line-endings to crlf, which messes cargo fmt checks
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install python toml package
run: python3 -m pip install toml
- name: Install rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $(python3 ./build-tools/rust-version-extractor/rust-version-extractor.py)
- name: Install rust clippy
run: rustup component add clippy
- name: Install cargo-deny
run: cargo install cargo-deny --locked
- name: Run checks
shell: bash
run: ./do_checks.sh

static_checks_macos:
runs-on: macos-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install python toml package
run: python3 -m pip install toml --break-system-packages --user
- name: Install rust
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $(python3 ./build-tools/rust-version-extractor/rust-version-extractor.py)
- name: Install rust clippy
run: rustup component add clippy
- name: Install cargo-deny
run: cargo install cargo-deny --locked
- name: Run checks
run: bash ./do_checks.sh

0 comments on commit 15a7da3

Please sign in to comment.