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