Merge pull request #1 from AikidoSec/Add-github-workflows #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust Build | |
on: | |
push: | |
branches: | |
- main # Change this to your default branch if it's not 'main' | |
pull_request: | |
branches: | |
- main # Change this to your default branch if it's not 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable # You can specify a version like '1.60.0' if needed | |
override: true | |
- name: Build | |
run: cargo build --verbose |