-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
96 additions
and
39 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 |
---|---|---|
|
@@ -6,39 +6,43 @@ on: | |
- 'benchmarking_*' | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- '*/*' | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
just_variants: | ||
- async_std | ||
- tokio | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: styfle/[email protected] | ||
name: Cancel Outdated Builds | ||
- name: Cancel Outdated Builds | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v4 | ||
name: Checkout Repository | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- uses: Swatinem/rust-cache@v2 | ||
name: Enable Rust Caching | ||
- name: Enable Rust Caching | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y protobuf-compiler | ||
cargo install just | ||
- name: Install Just | ||
run: | | ||
wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz | ||
tar -vxf just-1.14.0-x86_64-unknown-linux-musl.tar.gz just | ||
sudo cp just /usr/bin/just | ||
- name: Check | ||
run: just ${{ matrix.just_variants }} check | ||
|
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
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 |
---|---|---|
|
@@ -11,12 +11,28 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 120 | ||
steps: | ||
- name: Cancel Outdated Builds | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
access_token: ${{ github.token }} | ||
|
||
- name: Install Nix | ||
uses: cachix/install-nix-action@v23 | ||
|
||
- name: Nix Caching | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
name: espresso-systems-private | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
# See how long just nix setup takes | ||
- name: Initialize nix | ||
run: nix develop -c echo Finished | ||
|
||
- name: Run careful tests | ||
run: | | ||
nix develop .#correctnessShell -c just tokio careful | ||
|
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 |
---|---|---|
|
@@ -4,9 +4,6 @@ on: | |
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- '*/*' | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
workflow_dispatch: | ||
|
@@ -16,8 +13,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 35 | ||
steps: | ||
- uses: styfle/[email protected] | ||
name: Cancel Outdated Builds | ||
- name: Cancel Outdated Builds | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
access_token: ${{ github.token }} | ||
|
@@ -29,14 +26,18 @@ jobs: | |
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y protobuf-compiler | ||
cargo install just | ||
- uses: Swatinem/rust-cache@v2 | ||
name: Enable Rust Caching | ||
- name: Install Just | ||
run: | | ||
wget https://github.com/casey/just/releases/download/1.14.0/just-1.14.0-x86_64-unknown-linux-musl.tar.gz | ||
tar -vxf just-1.14.0-x86_64-unknown-linux-musl.tar.gz just | ||
sudo cp just /usr/bin/just | ||
- name: Enable Rust Caching | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Build Docs | ||
run: | | ||
just async_std doc | ||
run: just async_std doc | ||
|
||
- name: Create documentation | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
|
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 |
---|---|---|
|
@@ -5,32 +5,40 @@ on: | |
branches: | ||
- 'main' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- '*/*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lints: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 25 | ||
steps: | ||
- uses: styfle/[email protected] | ||
name: Cancel Outdated Builds | ||
- name: Cancel Outdated Builds | ||
uses: styfle/[email protected] | ||
with: | ||
all_but_latest: true | ||
access_token: ${{ github.token }} | ||
|
||
- name: Install Nix | ||
uses: cachix/install-nix-action@v23 | ||
|
||
- uses: actions/checkout@v4 | ||
name: Checkout Repository | ||
- name: Nix Caching | ||
uses: cachix/cachix-action@v12 | ||
with: | ||
name: espresso-systems-private | ||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Format Check | ||
run: cargo fmt -- --check | ||
|
||
- name: Clippy | ||
run: | | ||
nix develop -c just async_std lint | ||
nix develop -c just tokio lint | ||
# See how long just nix setup takes | ||
- name: Initialize nix | ||
run: nix develop -c echo Finished | ||
|
||
- name: Clippy async_std | ||
run: nix develop -c just async_std lint | ||
|
||
- name: Clippy tokio | ||
run: nix develop -c just tokio lint |
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