Bugfix/validator api windows build (#791)

* Use https://github.com/nymtech/nym/pull/784/commits/3eceb349c695372cbb7a3bee9aa5e090da7c9c4d trick to make build.rs work with windows

* Re-enabled validator-api windows CI build
This commit is contained in:
Jędrzej Stuczyński
2021-09-27 11:05:53 +01:00
committed by GitHub
parent 9a65e44166
commit 23ea82952e
2 changed files with 10 additions and 26 deletions
+1 -23
View File
@@ -25,28 +25,13 @@ jobs:
override: true
components: rustfmt, clippy
# 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
# Exclude validator API on Windows
- uses: actions-rs/cargo@v1
if: ${{ matrix.os == 'windows-latest' }}
with:
command: test
args: --all --exclude nym-validator-api
- uses: actions-rs/cargo@v1
if: ${{ matrix.os != 'windows-latest' }}
with:
command: test
args: --all
@@ -56,15 +41,8 @@ jobs:
command: fmt
args: --all -- --check
# Exclude validator API on Windows
- uses: actions-rs/cargo@v1
if: ${{ matrix.rust != 'nightly' && matrix.os == 'windows-latest' }}
with:
command: clippy
args: --all --exclude nym-validator-api -- -D warnings
- uses: actions-rs/cargo@v1
if: ${{ matrix.rust != 'nightly' && matrix.os != 'windows-latest' }}
if: ${{ matrix.rust != 'nightly' }}
with:
command: clippy
args: -- -D warnings