Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Cargo Installs in CI #139

Merged
merged 4 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ jobs:
with:
key: sqlx-${{ env.SQLX_VERSION }}
- name: Install sqlx-cli
run:
cargo install sqlx-cli
--version="${SQLX_VERSION}"
--features "${SQLX_FEATURES}"
--no-default-features
--locked
run: |
cargo install sqlx-cli \
--version="${SQLX_VERSION}" \
--features "${SQLX_FEATURES}" \
--no-default-features \
--locked
- name: Install mariadb-client and mold
run: sudo apt update && sudo apt install mariadb-client mold -y
- name: Migrate database
Expand All @@ -79,16 +79,12 @@ jobs:
name: spellcheck
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install the Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install libclang-dev and hunspell
run: sudo apt update && sudo apt install libclang-dev hunspell -y
- name: Install cargo-spellcheck
run: cargo install cargo-spellcheck
- uses: taiki-e/[email protected]
with:
tool: cargo-spellcheck
- name: Check spelling
run: cargo spellcheck --cfg=.spellcheck.toml --code 1

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
with:
key: sqlx-${{ env.SQLX_VERSION }}
- name: Install sqlx-cli
run:
cargo install sqlx-cli
--version="${SQLX_VERSION}"
--features "${SQLX_FEATURES}"
--no-default-features
--locked
run: |
cargo install sqlx-cli \
--version="${SQLX_VERSION}" \
--features "${SQLX_FEATURES}" \
--no-default-features \
--locked
- name: Install mariadb-client and mold
run: sudo apt update && sudo apt install mariadb-client mold -y
- name: Migrate database
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
- name: Rust Cache Action
uses: Swatinem/rust-cache@v2
- name: Install zizmor
run:
cargo install zizmor
run: cargo install zizmor
- name: check workflows
run: zizmor .github/workflows
env:
Expand Down
Loading