Skip to content

Commit

Permalink
chore: deps b/c clippy (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeeshan Lakhani committed Sep 5, 2023
1 parent e27cc43 commit 5c59174
Show file tree
Hide file tree
Showing 15 changed files with 378 additions and 260 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Project
uses: Swatinem/rust-cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run_daemon: true

- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Project
uses: Swatinem/rust-cache@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# https://github.com/docker/setup-qemu-action
- name: Setup QEMU
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v4
Expand Down
50 changes: 16 additions & 34 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,63 +18,45 @@ concurrency:
cancel-in-progress: true

jobs:
release-please:
runs-on: [ubuntu-latest, windows-latest, macos-latest]
publish-npm:
if: >
github.ref == 'refs/heads/main' &&
github.repository_owner == 'ipvm-wg' &&
github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success'
(github.event_name == 'workflow_dispatch' && github.event.inputs.force-publish) || github.event.workflow_run.conclusion == 'success'
outputs:
releases_created: >
${{ steps.release.outputs['homestar-core--release_created'] ||
steps.release.outputs['homestar-runtime--release_created'] ||
steps.release.outputs['homestar-wasm--release_created'] }}
steps:
- name: Run release-please
id: release
uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
default-branch: main
command: manifest
extra-files: |
README.md
publish-release-crates:
runs-on: ubuntu-latest
needs: [ release-please ]

permissions:
contents: write
pull-requests: write

if: ${{ needs.release-please.outputs.releases_created || github.event.inputs.force-publish }}

steps:
- name: Generate GitHub token
uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}

- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate-token.outputs.token }}

- name: Cache Project
uses: Swatinem/rust-cache@v2

- name: Install Rust Toolchain
uses: dtolnay/rust-toolchain@stable

- name: Install Cargo Workspaces
env:
RUSTFLAGS: '-Copt-level=1'
uses: dtolnay/install@master
with:
crate: cargo-workspaces

- name: Verify Publishing of crates
uses: katyo/publish-crates@v2
with:
dry-run: true

- name: Cargo Publish to crates.io
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo workspaces publish --from-git
12 changes: 5 additions & 7 deletions .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ jobs:
rust-toolchain:
- stable
- nightly
# minimum version
# 1.68 fixes: https://github.com/rust-lang/cargo/pull/11347
- 1.68
- 1.70.0
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Smarter caching action, speeds up build times compared to regular cache:
# https://github.com/Swatinem/rust-cache
Expand Down Expand Up @@ -91,7 +89,7 @@ jobs:
run_daemon: true

- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Project
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -131,7 +129,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Project
uses: Swatinem/rust-cache@v2
Expand Down Expand Up @@ -164,7 +162,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Project
uses: Swatinem/rust-cache@v2
Expand Down
6 changes: 0 additions & 6 deletions .release-please-manifest.json

This file was deleted.

Loading

0 comments on commit 5c59174

Please sign in to comment.