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 b610f33
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/build-application-cncli.yaml
@@ -0,0 +1,60 @@
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 dependency path
run: |
cd cncli
cargo edit-locally cardano_ouroboros_network --path ../cardano_ouroboros_network
- name: Build CNCLI
run: cargo build --verbose
- name: Run CNCLI tests
run: cargo test --verbose

build_success:
name: Build CNCLI with Cargo - All environments
runs-on: ubuntu-latest
needs: build
steps:
- run: echo Done!

0 comments on commit b610f33

Please sign in to comment.