From c6b135398a691d11e4913903e73ea183981b7e0e Mon Sep 17 00:00:00 2001 From: Sunshine Date: Sat, 4 Apr 2020 15:30:13 -0400 Subject: [PATCH 1/3] Implement CI using GitHub Actions --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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 0000000..c57d8a3 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: Cross-platform build & test + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + rust: + - stable + - beta + - nightly + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - name: Build + run: cargo build --all --locked --verbose + - name: Run tests + run: cargo test --all --locked --verbose + - name: Check code formatting + run: cargo fmt --all -- --check From 5f98ed23b34b49ccc265a4400ac6af061b02ac66 Mon Sep 17 00:00:00 2001 From: Sunshine Date: Sat, 4 Apr 2020 15:42:53 -0400 Subject: [PATCH 2/3] set autocrlf to false to let windows builds pass --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c57d8a3..4c59d1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,7 @@ jobs: runs-on: ${{ matrix.os }} steps: + - run: git config --global core.autocrlf false - uses: actions/checkout@v2 - name: Build run: cargo build --all --locked --verbose From 908fd59019eb044044b582b5dde9319312e04fcf Mon Sep 17 00:00:00 2001 From: Sunshine Date: Sat, 4 Apr 2020 17:08:19 -0400 Subject: [PATCH 3/3] Update ci.yml --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c59d1e..5938125 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Cross-platform build & test +name: CI on: push: @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - build: + build_and_test: strategy: matrix: