summaryrefslogtreecommitdiff
path: root/.github/workflows
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 /.github/workflows
parent19daf3236d22d31f1c74cec5b4e391325d73224e (diff)
downloadssh2-rs-0c6911770f4989076ee06f3b796af7fdf7ddb08b.zip
Add linux build to GH actions CI config
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/linux.yml31
1 files changed, 31 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
+