-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zeeshan Lakhani
authored
Oct 11, 2023
1 parent
b0bda83
commit edd2f21
Showing
5 changed files
with
72 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,15 +53,6 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Use mold-linker | ||
uses: rui314/setup-mold@v1 | ||
|
||
|
@@ -72,6 +63,15 @@ jobs: | |
- name: Override rust-toolchain.toml | ||
run: rustup override set ${{steps.toolchain.outputs.name}} | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,16 +44,11 @@ jobs: | |
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: Verify Publishing of crates | ||
uses: katyo/publish-crates@v2 | ||
with: | ||
dry-run: true | ||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run release-plz | ||
uses: MarcoIeni/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,18 +60,6 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
# Smarter caching action, speeds up build times compared to regular cache: | ||
# https://github.com/Swatinem/rust-cache | ||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
shared-key: check-${{ matrix.rust-toolchain }}-${{ matrix.os }} | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Use mold-linker | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: rui314/setup-mold@v1 | ||
|
@@ -86,12 +74,28 @@ jobs: | |
- name: Override rust-toolchain.toml | ||
run: rustup override set ${{steps.toolchain.outputs.name}} | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
shared-key: check-${{ matrix.rust-toolchain }}-${{ matrix.os }} | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Check Format | ||
run: cargo fmt --all -- --check | ||
|
||
- name: Run Linter | ||
run: cargo clippy --all -- -D warnings | ||
|
||
- name: Verify Publishing of crates | ||
uses: katyo/publish-crates@v2 | ||
if: ${{ matrix.rust-toolchain == 'stable' && github.event_name == 'push' }} | ||
with: | ||
dry-run: true | ||
|
||
# Only "test" release build on push event. | ||
- name: Test Release | ||
if: ${{ matrix.rust-toolchain == 'stable' && github.event_name == 'push' }} | ||
|
@@ -105,19 +109,19 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use mold-linker | ||
uses: rui314/setup-mold@v1 | ||
|
||
- name: Install Rust Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
shared-key: deny-stable-ubuntu-latest | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Use mold-linker | ||
uses: rui314/setup-mold@v1 | ||
|
||
- name: Install Rust Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
# Check for security advisories | ||
- name: Check Advisories | ||
uses: EmbarkStudios/cargo-deny-action@v1 | ||
|
@@ -153,16 +157,6 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
shared-key: test-all-${{ matrix.rust-toolchain }}-${{ matrix.os }} | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Use mold-linker | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
uses: rui314/setup-mold@v1 | ||
|
@@ -176,6 +170,16 @@ jobs: | |
- name: Override rust-toolchain.toml | ||
run: rustup override set ${{steps.toolchain.outputs.name}} | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
shared-key: test-all-${{ matrix.rust-toolchain }}-${{ matrix.os }} | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Install nextest | ||
uses: taiki-e/install-action@nextest | ||
|
||
|
@@ -211,13 +215,6 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
shared-key: test-all-${{ matrix.rust-toolchain }}-windows-latest | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Install Rust Toolchain | ||
id: toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
|
@@ -227,6 +224,13 @@ jobs: | |
- name: Override rust-toolchain.toml | ||
run: rustup override set ${{steps.toolchain.outputs.name}} | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
shared-key: test-all-${{ matrix.rust-toolchain }}-windows-latest | ||
save-if: ${{ github.event_name == 'push' }} | ||
|
||
- name: Install nextest | ||
uses: taiki-e/install-action@nextest | ||
|
||
|
@@ -255,6 +259,12 @@ jobs: | |
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use mold-linker | ||
uses: rui314/setup-mold@v1 | ||
|
||
- name: Install Rust Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Cache Project | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
|
@@ -264,12 +274,6 @@ jobs: | |
- name: Sccache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: Use mold-linker | ||
uses: rui314/setup-mold@v1 | ||
|
||
- name: Install Rust Toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Run Doc(s) compilation | ||
env: | ||
RUSTDOCFLAGS: -Dwarnings | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
[workspace] | ||
publish = false | ||
changelog_update = false | ||
publish = false | ||
pr_labels = ["release"] | ||
|
||
[[package]] | ||
name = "homestar-core" | ||
publish = true | ||
changelog_update = true | ||
git_release_enable = true | ||
|
||
[[package]] | ||
name = "homestar-runtime" | ||
publish = true | ||
changelog_update = true | ||
git_release_enable = true | ||
|
||
[[package]] | ||
name = "homestar-wasm" | ||
publish = true | ||
changelog_update = true | ||
git_release_enable = true | ||
|
||
[[package]] | ||
name = "homestar-functions-add" | ||
publish = false | ||
changelog_update = false | ||
|
||
[[package]] | ||
name = "homestar-functions-test" | ||
publish = false | ||
changelog_update = false | ||
|
||
[[package]] | ||
name = "example-websocket-relay" | ||
publish = false | ||
changelog_update = false |