Skip to content

Commit

Permalink
Merge pull request #6 from 2-5-Foundation/test-actions
Browse files Browse the repository at this point in the history
added github actions to build
  • Loading branch information
mshankarrao authored Nov 26, 2023
2 parents 50b0f03 + 9f6aa57 commit fcdab7e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 79 deletions.
47 changes: 32 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,39 @@
name: Rust

name: build-vane
on:
workflow_dispatch:
push:
branches: [ "tanssi-branch" ]
branches:
- main
paths-ignore:
- "**.md"
pull_request:
branches: [ "tanssi-branch" ]

env:
CARGO_TERM_COLOR: always
branches:
- main
paths-ignore:
- "**.md"

jobs:
build:

build-vane:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Checkout sources
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install minimal nightly Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-22
target: wasm32-unknown-unknown
override: true

- name: Clean unused directories
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: Install Protobuf
run: sudo apt install protobuf-compiler

- name: Run build
run: cargo build
64 changes: 0 additions & 64 deletions .github/workflows/test-and-lint.yml

This file was deleted.

0 comments on commit fcdab7e

Please sign in to comment.