Skip to content

Commit

Permalink
Add CNCLI build to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-stopka committed Sep 24, 2021
1 parent cba7e7b commit 0ef2299
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build-application-cncli.yaml
@@ -0,0 +1,64 @@
name: Test CNCLI compatibility

on:
push:
release:
types: [created]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
build:
name: Build CNCLI with Cargo
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, macos-11]
rust: [stable, nightly]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
with:
path: cardano_ouroboros_network
- uses: actions/checkout@v2
with:
repository: AndrewWestberg/cncli
path: cncli
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
- uses: actions/checkout@v2
with:
repository: alexcrichton/cargo-edit-locally
path: cargo-edit-locally
- name: Install cargo-edit-locally
run: |
pushd cargo-edit-locally
cargo build -q
cargo install --path .
popd
- name: Update dependencies
run: |
pushd cncli
cargo edit-locally cardano_ouroboros_network --path ../cardano_ouroboros_network
rm Cargo.lock
cargo update
- name: Build CNCLI
run: cargo build --verbose
- name: Run CNCLI tests
run: |
cargo test --verbose
popd
build_success:
name: Build CNCLI with Cargo - All environments
runs-on: ubuntu-latest
needs: build
steps:
- run: echo Done!

0 comments on commit 0ef2299

Please sign in to comment.