Skip to content

Commit

Permalink
[GH workflow] Add build/test checks
Browse files Browse the repository at this point in the history
  • Loading branch information
weezy20 committed Mar 5, 2024
1 parent 893b08f commit c8e1a5b
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build Pop-ClI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Free up space on runner
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Rust Cache
uses: Swatinem/[email protected]
with:
cache-on-failure: true
cache-all-crates: true

- uses: actions/checkout@v3
- name: Check Contracts Exclusively
run: cargo check --no-default-features --feature contract

- uses: actions/checkout@v3
- name: Check Parachain Exclusively
run: cargo check --no-default-features --feature parachain

- uses: actions/checkout@v3
- name: Build
run: cargo build

- name: Run tests
run: cargo test --verbose

0 comments on commit c8e1a5b

Please sign in to comment.