From e470775b69848dcb76b85ee981933bd8986db8b8 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sun, 8 Aug 2021 10:22:40 +0100 Subject: [PATCH 1/2] Add Github action to run tests --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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..397a58e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,30 @@ +on: + push: + pull_request: + +name: Continuous integration + +jobs: + test: + name: Test suite + runs-on: ubuntu-latest + strategy: + matrix: + rust: + - stable + - beta + - nightly + steps: + - uses: actions/checkout@v2.3.4 + - name: Install capnproto + run: sudo apt-get install capnproto libcapnp-dev + - uses: actions-rs/toolchain@v1.0.7 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + - uses: Swatinem/rust-cache@v1 + - name: Build and test + uses: actions-rs/cargo@v1.0.3 + with: + command: test \ No newline at end of file From 45a0904be682e843838f6b4ece57b8165bd779a4 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Sun, 8 Aug 2021 18:27:00 +0100 Subject: [PATCH 2/2] Just run on stable, because build issues --- .github/workflows/ci.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 397a58e..20bfc53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,12 +8,6 @@ jobs: test: name: Test suite runs-on: ubuntu-latest - strategy: - matrix: - rust: - - stable - - beta - - nightly steps: - uses: actions/checkout@v2.3.4 - name: Install capnproto @@ -21,7 +15,7 @@ jobs: - uses: actions-rs/toolchain@v1.0.7 with: profile: minimal - toolchain: ${{ matrix.rust }} + toolchain: stable override: true - uses: Swatinem/rust-cache@v1 - name: Build and test