Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Commit

Permalink
Merge pull request #63 from EspressoSystems/adding_vbs_support
Browse files Browse the repository at this point in the history
Up to date, including VBS
  • Loading branch information
nyospe authored Mar 22, 2024
2 parents c4a4afb + 6a361db commit 4cdf4cf
Show file tree
Hide file tree
Showing 11 changed files with 1,360 additions and 210 deletions.
8 changes: 8 additions & 0 deletions .github/actions/install-capnp/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Install Capn Proto
runs:
using: composite
steps:
- run: |
sudo apt-get update
sudo apt-get install -y capnproto
shell: bash
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v2

- name: Install capnproto
uses: ./.github/actions/install-capnp

- uses: dtolnay/rust-toolchain@stable

- name: Configure Git
Expand All @@ -51,8 +54,9 @@ jobs:
token: ${{ github.token }}
args: --workspace --all-features --all-targets -- -D warnings

- name: Audit
run: cargo audit --ignore RUSTSEC-2023-0018 --ignore RUSTSEC-2023-0052 --ignore RUSTSEC-2023-0065
# TODO: This should not be the basis of a build failure. Move to a different job
# - name: Audit
# run: cargo audit --ignore RUSTSEC-2023-0018 --ignore RUSTSEC-2023-0052 --ignore RUSTSEC-2023-0065

- name: Build
# Build in release without `testing` feature, this should work without `hotshot_example` config.
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
windows:
runs-on: windows-latest
env:
RUSTFLAGS: "--cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"async-std\" --cfg hotshot_example"
RUSTFLAGS: "--cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"async-std\""
RUST_LOG: info
steps:
- name: Configure Git
Expand All @@ -40,6 +40,18 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v2

# Will this work?
- name: Install Cap'n Proto
run: |
curl https://capnproto.org/capnproto-c++-win32-1.0.2.zip -o capnproto.zip
7z.exe e capnproto.zip -r *.exe -o${{github.workspace}}\capnproto
Write-Output "Unpacking capnp.exe to ${{github.workspace}}\capnproto\"
Get-ChildItem -Path ${{github.workspace}}\capnproto\
echo "${{github.workspace}}\capnproto" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
$env:Path += ';${{github.workspace}}\capnproto'
Get-Command capnp -All
capnp --version
- name: Checkout Repository
uses: actions/checkout@v4

Expand All @@ -48,6 +60,9 @@ jobs:

- name: Build
run: |
Get-ChildItem -Path ${{github.workspace}}\capnproto\
$env:Path += ';${{github.workspace}}\capnproto'
capnp --version
cargo build --workspace --release
- name: Test
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/debug_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v2

- name: Install capnproto
uses: ./.github/actions/install-capnp

- uses: dtolnay/rust-toolchain@stable

- uses: styfle/[email protected]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v2

- name: Install capnproto
uses: ./.github/actions/install-capnp

- uses: dtolnay/rust-toolchain@stable

- name: Configure Git
Expand Down
Loading

0 comments on commit 4cdf4cf

Please sign in to comment.