From 0818332c2b96908c56ef63b83ff72da859752db5 Mon Sep 17 00:00:00 2001 From: Berin Aniesh Date: Thu, 14 Sep 2023 11:20:31 +0530 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ac018da..8d72093 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,15 @@ -name: Build +name: Build on GitHub -on: [push] +on: + push: + branches: [main] + pull_request: + branches: [main] jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - run: cargo build --release + - run: rustup update stable && rustup default stable + - run: cargo build