Feature/superbuild (#719)

* Adding build script

* Added build dependencies

* Cleaned up build.rs

* Restored validator-api to default workspace

* Removed split for validator-api build in github ations

* Don't build validator API on Windows

* Remove validator-api Cargo.lock

* Remove fmt from the conditional steps

Co-authored-by: Dave Hrycyszyn <futurechimp@users.noreply.github.com>
Co-authored-by: Bogdan-Ștefan Neacșu <bogdan@nymtech.net>
This commit is contained in:
Jędrzej Stuczyński
2021-08-04 09:55:58 +01:00
committed by GitHub
parent 26fb13fe2d
commit 2db79de722
6 changed files with 512 additions and 3746 deletions
+18 -24
View File
@@ -21,52 +21,46 @@ jobs:
override: true
components: rustfmt, clippy
# main repo
# Exclude validator API on Windows
- uses: actions-rs/cargo@v1
if: ${{ matrix.os == 'windows-latest' }}
with:
command: build
args: --all --exclude nym-validator-api
- uses: actions-rs/cargo@v1
if: ${{ matrix.os != 'windows-latest' }}
with:
command: build
args: --all
# validator API
# Exclude validator API on Windows
- uses: actions-rs/cargo@v1
if: ${{ matrix.os == 'windows-latest' }}
with:
command: build
args: --manifest-path validator-api/Cargo.toml
command: test
args: --all --exclude nym-validator-api
# main repo
- uses: actions-rs/cargo@v1
if: ${{ matrix.os != 'windows-latest' }}
with:
command: test
args: --all
# validator API
- uses: actions-rs/cargo@v1
with:
command: test
args: --manifest-path validator-api/Cargo.toml
# main repo
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
# validator API
# Exclude validator API on Windows
- uses: actions-rs/cargo@v1
if: ${{ matrix.rust != 'nightly' && matrix.os == 'windows-latest' }}
with:
command: fmt
args: --manifest-path validator-api/Cargo.toml -- --check
command: clippy
args: --all --exclude nym-validator-api -- -D warnings
# main repo
- uses: actions-rs/cargo@v1
if: ${{ matrix.rust != 'nightly' }}
if: ${{ matrix.rust != 'nightly' && matrix.os != 'windows-latest' }}
with:
command: clippy
args: -- -D warnings
# validator API
- uses: actions-rs/cargo@v1
if: ${{ matrix.rust != 'nightly' }}
with:
command: clippy
args: --manifest-path validator-api/Cargo.toml -- -D warnings