Merge branch 'main' of github.com:Rust-Nigeria/website into dev #93
This file contains hidden or 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 Script CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - "**/*" # Trigger on all branches but will set to on production branch only later | |
| jobs: | |
| run-cargo-tool: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Set up Rust (nightly) | |
| uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: nightly | |
| override: true | |
| - name: Install Rust Components | |
| run: | | |
| rustup component add clippy rustfmt | |
| - name: Compile Script | |
| run: rustc +nightly cargo_tool.rs -o FBUILD | |
| - name: Run Script | |
| run: ./FBUILD |