Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleitnick committed Mar 27, 2024
1 parent 5183f2b commit 50adea2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 37 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
24 changes: 15 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,27 @@ jobs:
env:
BIN: rbxcloud
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Get version from tag
shell: bash
run: |
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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/cli-experience.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50adea2

Please sign in to comment.