diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000000000..3d8a07666bf73 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,34 @@ +name: rust-build + +on: + pull_request: + branches: + - '**' + push: + paths-ignore: + - '*.md' + branches: + - main + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + +jobs: + build-repo: + name: Build repository + runs-on: ubuntu-latest + env: + CARGO_INCREMENTAL: 0 + steps: + - name: Checkout source code + uses: actions/checkout@v2 + - name: Install rust toolchain + uses: actions-rs/toolchain@v1 + - name: Install WASM target + run: rustup target add wasm32-unknown-unknown + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --release diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 0000000000000..1f1f6b18d9a3e --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +nightly-2022-08-12