Skip to content

Commit

Permalink
Adjust CI workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Jan 9, 2020
1 parent dd54901 commit cfcdb95
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 49 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: Build addon, run tests and package
name: CI

on: [push, pull_request]

env:
CI: true

jobs:
build-and-test:
name: Build addon
name: Build addon and run tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand Down Expand Up @@ -86,9 +89,6 @@ jobs:
- name: Move addons to one folder
run: mkdir prebuilds && mv ./addon-*/* ./prebuilds/

- name: list
run: find prebuilds

- name: Build package
run: make package

Expand All @@ -100,4 +100,43 @@ jobs:
uses: actions/upload-artifact@v1
with:
name: package
path: secp256k1-${{ steps.pkg-version.outputs.version }}.tgz
path: keccak-${{ steps.pkg-version.outputs.version }}.tgz

lint-cpp:
name: Lint C/C++ code
runs-on: ubuntu-latest
steps:
- name: Fetch code
uses: actions/checkout@v1
with:
fetch-depth: 1

- uses: actions/cache@v1
id: cache
with:
path: clang
key: clang-llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04

- name: Download clang-format
if: steps.cache.outputs.cache-hit != 'true'
run: wget -O- -q http://releases.llvm.org/9.0.0/$VER.tar.xz | tar xfJ - $VER/bin/clang-format && mv $VER clang
env:
VER: clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-18.04

- name: Run lint command
run: PATH=$PATH:./clang/bin/ make lint-cpp-ci

lint-js:
name: Lint JS code
runs-on: ubuntu-latest
steps:
- name: Fetch code
uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Install dependencies
run: yarn install --ignore-scripts

- name: Run lint command
run: make lint-js
43 changes: 0 additions & 43 deletions .github/workflows/lint.yaml

This file was deleted.

0 comments on commit cfcdb95

Please sign in to comment.