diff options
Diffstat (limited to '.github/workflows/push-check.yml')
-rw-r--r-- | .github/workflows/push-check.yml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/.github/workflows/push-check.yml b/.github/workflows/push-check.yml new file mode 100644 index 0000000..afce1c6 --- /dev/null +++ b/.github/workflows/push-check.yml @@ -0,0 +1,70 @@ +name: Push Check + +on: [push] + +jobs: + msrv: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + - uses: actions-rs/toolchain@v1 + with: + toolchain: 1.36.0 + override: true + - uses: actions-rs/cargo@v1 + with: + command: build + args: --verbose + build_and_test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: test + args: --verbose + - uses: actions-rs/cargo@v1 + with: + command: test + args: --verbose --no-default-features --lib + test_all_features: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: actions-rs/cargo@v1 + with: + command: test + args: --verbose --all-features + run_all_examples: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + with: + submodules: recursive + - uses: actions-rs/cargo@v1 + with: + command: build + args: --verbose --release --examples + - name: Run all the examples + run: for example in examples/*.rs; do ./target/release/examples/$(basename ${example} .rs); done && tar -czvf example-outputs.tar.gz plotters-doc-data + - uses: actions/upload-artifact@v1 + with: + name: example-outputs + path: example-outputs.tar.gz |