From 3520dca1bbe6377057b1e117427400dd7a7a9d9c Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Sun, 26 Jul 2020 08:43:36 -0700 Subject: [PATCH] WIP experiment with github actions --- .github/workflows/ci.yml | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..f4100ea2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,64 @@ +name: CI + +on: + pull_request: + push: +# schedule: +# - cron: "00 01 * * *" + +jobs: + ci: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - macos-latest + - ubuntu-latest + #- windows-latest + rust: + - stable + #- beta + #- nightly + #- "1.32.0" + steps: + - nae: checkout the source code + uses: actions/checkout@v1 + with: + fetch-depth: 2 + + - name: install dependencies (macos) + run: brew update && brew install zmq + if: matrix.os == 'macos-latest' +# +# - name: install msys2 +# uses: eine/setup-msys2@v0 +# with: +# update: true + + - name: install dependencies (ubuntu) + run: sudo apt -y install libzmq3-dev libsodium-dev + if: matrix.os == 'ubuntu-latest' + + - name: install Rust + uses: actions-rs/toolchain/@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + components: clippy + + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + + - name: Run Tests + uses: actions-rs/cargo@v1 + with: + command: test + + - name: Generate Docs + uses: actions-rs/cargo@v1 + with: + command: doc + args: --all-features --no-deps