summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@wezfurlong.org>2019-10-20 10:19:20 +0100
committerWez Furlong <wez@wezfurlong.org>2019-10-20 11:14:01 +0100
commit0c6911770f4989076ee06f3b796af7fdf7ddb08b (patch)
treeef67b2ea7ccaa34eedca105637c06e5d2f67a2f0
parent19daf3236d22d31f1c74cec5b4e391325d73224e (diff)
downloadssh2-rs-0c6911770f4989076ee06f3b796af7fdf7ddb08b.zip
Add linux build to GH actions CI config
-rw-r--r--.github/workflows/linux.yml31
-rw-r--r--README.md1
2 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644
index 0000000..030b459
--- /dev/null
+++ b/.github/workflows/linux.yml
@@ -0,0 +1,31 @@
+name: linux
+
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ branches:
+ - master
+
+jobs:
+ build:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-16.04, ubuntu-18.04]
+ runs-on: ${{ matrix.os }}
+ steps:
+ - uses: actions/checkout@v1
+ - name: Install Rust
+ run: curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
+ - name: Build and test
+ run: |
+ source $HOME/.cargo/env
+ rustc -V
+ cargo -V
+ cargo build
+ tests/run_integration_tests.sh
+ rustdoc --test README.md -L target
+ cargo run --manifest-path systest/Cargo.toml
+
diff --git a/README.md b/README.md
index 5ad3252..10c4015 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
# ssh2-rs
[![Build Status](https://travis-ci.com/alexcrichton/ssh2-rs.svg?branch=master)](https://travis-ci.com/alexcrichton/ssh2-rs)
+[![Build Status](https://github.com/alexcrichton/ssh2-rs/workflows/linux/badge.svg)](https://github.com/alexcrichton/ssh2-rs/actions?workflow=linux)
[![Build Status](https://github.com/alexcrichton/ssh2-rs/workflows/Windows/badge.svg)](https://github.com/alexcrichton/ssh2-rs/actions?workflow=Windows)
[![Build Status](https://github.com/alexcrichton/ssh2-rs/workflows/macOS/badge.svg)](https://github.com/alexcrichton/ssh2-rs/actions?workflow=macOS)