diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ad7ebf..235b589 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,30 +11,12 @@ jobs: name: Lint and Format runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - components: clippy, rustfmt - override: true - - name: Format - uses: actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - name: Clippy - uses: actions-rs/clippy-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features - - test: - name: Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions-rs/toolchain@v1 - with: - toolchain: stable + - uses: actions/checkout@v4 + - name: Rust + run: rustup toolchain install stable --profile minimal --component clippy rustfmt --no-self-update + - name: Rust Cache + uses: Swatinem/rust-cache@v2 + - run: cargo check + - run: cargo fmt --all -- --check + - run: cargo clippy --all-features - run: cargo test --all-features diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index c202a64..463e03c 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -10,7 +10,7 @@ jobs: name: Build & Deploy Docs runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Deploy Docs uses: mhausenblas/mkdocs-deploy-gh-pages@master env: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b616d8a..380849b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -54,7 +54,7 @@ jobs: env: BIN: rbxcloud steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Get version from tag shell: bash @@ -62,13 +62,19 @@ jobs: echo "PROJECT_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV echo "Version is ${{ env.PROJECT_VERSION }}" - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - target: ${{ matrix.target }} - override: true - profile: minimal + # - name: Install Rust + # uses: actions-rs/toolchain@v1 + # with: + # toolchain: stable + # target: ${{ matrix.target }} + # override: true + # profile: minimal + + - name: Rust + run: rustup toolchain install stable-${{ matrix.target }} --profile minimal --no-self-update + + - name: Rust Cache + uses: Swatinem/rust-cache@v2 - name: Build Release run: cargo build --release --locked --verbose @@ -112,7 +118,7 @@ jobs: name: Publish runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Rust uses: actions-rs/toolchain@v1 diff --git a/docs/cli/cli-experience.md b/docs/cli/cli-experience.md index 748e149..b9fe8a4 100644 --- a/docs/cli/cli-experience.md +++ b/docs/cli/cli-experience.md @@ -35,7 +35,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Aftman uses: ok-nick/setup-aftman@v0