Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Replace Azure Pipelines by GitHub Actions #3187

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 0 additions & 28 deletions .ci/general-jobs

This file was deleted.

16 changes: 0 additions & 16 deletions .ci/install.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .ci/release.yml

This file was deleted.

10 changes: 0 additions & 10 deletions .ci/test.yml

This file was deleted.

50 changes: 0 additions & 50 deletions .ci/windows-release.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Continuous Integration

on: [pull_request]

env:
RUST_BACKTRACE: '1'
RUSTFLAGS: '-C debug-assertions'

jobs:

ubuntu:
name: Ubuntu CI
runs-on: ubuntu-latest
strategy:
matrix:
job_args: [ 'servers', 'chain core keychain', 'pool p2p src', 'api util store' ]
steps:
- name: Echo
run: echo ${GITHUB_REF}
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: sudo apt-get update -yqq && sudo apt-get install -yqq --no-install-recommends libncursesw5-dev
- name: Test ${{ matrix.job_args }}
env:
CI_JOB_ARGS: ${{ matrix.job_args }}
run: |
for dir in ${CI_JOB_ARGS}; do
printf "executing tests in directory \`%s\`...\n" "${dir}"
cd "${dir}" && \
cargo test --release && \
cd - > /dev/null || exit 1
done

macos:
name: macOS CI
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Tests
run: cargo test --release --all

windows:
name: Windows CI
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Patch Grin ncurses
run: git apply .github/workflows/win.patch
- name: Install LLVM
run: choco install -y llvm
- name: Tests
run: cargo test --release --all
Loading