diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d2bed60 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + pull_request: + paths: + - '**.rs' + - '**.toml' + - '.github/workflows/ci.yml' + push: + branches: [master] + paths: + - '**.rs' + - '**.toml' + - '.github/workflows/ci.yml' + +jobs: + Test: + strategy: + fail-fast: false + + matrix: + platform: + - { target: x86_64-pc-windows-gnu, os: windows-latest } + - { target: x86_64-pc-windows-msvc, os: windows-latest } + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest } + - { target: x86_64-apple-darwin, os: macos-latest } + + runs-on: ${{ matrix.platform.os }} + + steps: + - uses: actions/checkout@v1 + - uses: hecrj/setup-rust-action@v1 + with: + rust-version: stable-${{ matrix.platform.target }} + + - name: Build + run: cargo build --verbose + + - name: Test + run: cargo test --verbose + + env: + RUST_BACKTRACE: 1 + RUST_INCREMENTAL: 0 + RUSTFLAGS: "-C debuginfo=0" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c39c60c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: rust - -sudo: false - -notifications: - email: false - -branches: - only: master