From b0199ef3964e1010b4dbea1568e4e09cb7db4bb4 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Fri, 25 Oct 2019 09:09:58 +0200 Subject: [PATCH] Enable Github Actions --- .github/workflows/ci.yml | 74 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 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 0000000000..1db785275a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,74 @@ +name: Continuous Integration + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + name: Build + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + rust: [stable, 1.36.0] + + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + submodules: recursive + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + components: rustfmt + - name: Check formatting + uses: actions-rs/cargo@v1 + with: + cmd: fmt + args: --all -- --check + - name: Build debug + uses: actions-rs/cargo@v1 + with: + cmd: build + - name: Build release + uses: actions-rs/cargo@v1 + with: + cmd: build + args: --release + + test: + name: Test + needs: build + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + rust: [stable, beta, nightly, 1.36.0] + + steps: + - name: Checkout + uses: actions/checkout@v1 + with: + submodules: recursive + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + target: wasm32-wasi + override: true + - name: Run tests + uses: actions-rs/cargo@v1 + with: + cmd: test + args: --all --features wasm_tests