Skip to content

Commit

Permalink
ci: install rustup and ensure PRs don't trigger twice
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrake committed Jul 8, 2024
1 parent 5cd35ce commit 1fb040c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
workflow_dispatch:
pull_request:
push:
branches:
- main
tags:
- '*'
# Run weekly on the default branch to make sure it always builds with the latest rust release
schedule:
- cron: '30 5 * * 1'
Expand All @@ -24,7 +28,10 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
run: rustup toolchain install --no-self-update stable --profile minimal -c clippy
run: |
curl --proto '=https' --tlsv1.2 -sSfL https://sh.rustup.rs \
| sh -s -- -y --default-toolchain stable --profile minimal -c clippy
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Test Stable
run: cargo +stable test
Expand Down

0 comments on commit 1fb040c

Please sign in to comment.