Skip to content

Commit

Permalink
Migrate to github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaviask committed Jun 8, 2021
1 parent a0b93e6 commit 889a363
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 55 deletions.
54 changes: 0 additions & 54 deletions .circleci/config.yml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build
on: [push]

jobs:
build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Install Rust nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true

- name: Install wasm32
uses: actions-rs/toolchain@v1
with:
target: wasm32-unknown-unknown
toolchain: nightly

- uses: actions/cache@v2
with:
path: target/
key: ${{ runner.os }}-rust-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-rust-
- name: Module tests
run: ./scripts/test.sh

- name: Build binary
run: cargo build --release

- name: Save binary
uses: actions/upload-artifact@v2
with:
name: edgeware
path: target/release/edgeware
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ db
node_modules
forker-data
beresheet-state.json
build
build
*yalc*

0 comments on commit 889a363

Please sign in to comment.