From 05178848e50866140c588d5d1fe56a98ed90a3f8 Mon Sep 17 00:00:00 2001 From: Daniel Ramirez Chiquillo Date: Tue, 15 Nov 2022 05:21:36 +0000 Subject: [PATCH] compile with beta compiler on CI (#3717) ## Issue Addressed Closes #3709 ## Proposed Changes Add the job `compile-with-beta-compiler` to `test-suite`. This job has the following steps: 1. Use `actions/checkout@v3`. (Needed to run make in a later step.) 2. Install the dependencies listed in [build from source guide](https://lighthouse-book.sigmaprime.io/installation-source.html). 3. Change the compiler to the current beta version with `rustup override`. 4. Run `make`. --- .github/workflows/test-suite.yml | 11 +++++++++++ bors.toml | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 423f3deca..d536869e4 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -418,3 +418,14 @@ jobs: env: # Allow warnings on Nightly RUSTFLAGS: "" + compile-with-beta-compiler: + name: compile-with-beta-compiler + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Install dependencies + run: sudo apt install -y git gcc g++ make cmake pkg-config llvm-dev libclang-dev clang protobuf-compiler + - name: Use Rust beta + run: rustup override set beta + - name: Run make + run: make diff --git a/bors.toml b/bors.toml index 6edf55bfa..dbe92c68f 100644 --- a/bors.toml +++ b/bors.toml @@ -23,7 +23,8 @@ status = [ "check-msrv", "slasher-tests", "syncing-simulator-ubuntu", - "disallowed-from-async-lint" + "disallowed-from-async-lint", + "compile-with-beta-compiler" ] use_squash_merge = true timeout_sec = 10800